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:
parent
4f2d1d6ea7
commit
62b8dbf35e
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue