diff options
author | Iago Toral Quiroga <[email protected]> | 2017-06-16 09:27:43 +0200 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2017-06-19 07:55:48 +0200 |
commit | b72b7c541dd81890e04652373f24840f580123ed (patch) | |
tree | c3dcfabbca3d5e3adc054617c27854b0ee059a75 /src | |
parent | 10d104207acdf78e76e329041852c2eae9765cec (diff) |
i965: update MaxTextureRectSize to match PRMs and comply with OpenGL 4.1+
We were exposing 4096, but we can do up to 8192 in Gen4-6 and up to
16384 in gen7+. OpenGL 4.1+ requires at least 16384.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 2d91b37744a..157d8550de6 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -503,7 +503,7 @@ brw_initialize_context_constants(struct brw_context *brw) ctx->Const.Max3DTextureLevels = 12; /* 2048 */ ctx->Const.MaxArrayTextureLayers = brw->gen >= 7 ? 2048 : 512; ctx->Const.MaxTextureMbytes = 1536; - ctx->Const.MaxTextureRectSize = 1 << 12; + ctx->Const.MaxTextureRectSize = brw->gen >= 7 ? 16384 : 8192; ctx->Const.MaxTextureMaxAnisotropy = 16.0; ctx->Const.MaxTextureLodBias = 15.0; ctx->Const.StripTextureBorder = true; |