diff options
author | Ilia Mirkin <[email protected]> | 2016-11-27 21:05:35 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-11-29 07:44:01 -0800 |
commit | 62b8dbf35e0971ec9a310cf4b3b119c9fa1e8a70 (patch) | |
tree | c7f381c097cf09f47c234ebc7cb5a18c2201513b /src | |
parent | 4f2d1d6ea713df8f8d816b48b9e99c7117cf36d7 (diff) |
i965/gen7: expose larger gather offsets
This matches the capabilities of the hardware.
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 6aeb12ddced..b928f94e188 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -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; |