i965/gen7: expose larger gather offsets

This matches the capabilities of the hardware.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Ilia Mirkin 2016-11-27 21:05:35 -05:00 committed by Jason Ekstrand
parent 4f2d1d6ea7
commit 62b8dbf35e
1 changed files with 7 additions and 2 deletions

View File

@ -536,10 +536,15 @@ brw_initialize_context_constants(struct brw_context *brw)
ctx->Const.MaxTextureRectSize = 1 << 12;
ctx->Const.MaxTextureMaxAnisotropy = 16.0;
ctx->Const.StripTextureBorder = true;
if (brw->gen >= 7)
if (brw->gen >= 7) {
ctx->Const.MaxProgramTextureGatherComponents = 4;
else if (brw->gen == 6)
ctx->Const.MinProgramTextureGatherOffset = -32;
ctx->Const.MaxProgramTextureGatherOffset = 31;
} else if (brw->gen == 6) {
ctx->Const.MaxProgramTextureGatherComponents = 1;
ctx->Const.MinProgramTextureGatherOffset = -8;
ctx->Const.MaxProgramTextureGatherOffset = 7;
}
ctx->Const.MaxUniformBlockSize = 65536;