summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 48c141c9c2e..087e5a283cf 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -178,11 +178,12 @@ brwCreateContext(int api,
ctx->Const.MaxTextureLevels = MAX_TEXTURE_LEVELS;
ctx->Const.Max3DTextureLevels = 9;
ctx->Const.MaxCubeTextureLevels = 12;
- /* minimum maximum. Users are likely to run into memory problems
- * even at this size, since 64 * 2048 * 2048 * 4 = 1GB and we can't
- * address that much.
- */
- ctx->Const.MaxArrayTextureLayers = 64;
+
+ if (intel->gen >= 7)
+ ctx->Const.MaxArrayTextureLayers = 2048;
+ else
+ ctx->Const.MaxArrayTextureLayers = 512;
+
ctx->Const.MaxTextureRectSize = (1<<12);
ctx->Const.MaxTextureMaxAnisotropy = 16.0;