summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_context.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-09-06 10:21:54 -0700
committerEric Anholt <[email protected]>2011-10-03 13:29:38 -0700
commit669f1822d2a60865514faf37f9fde21e4567b3d2 (patch)
tree2ff3c3c60d4097418d153d200c56d90ceb05f597 /src/mesa/drivers/dri/i965/brw_context.c
parent82691574b6fc5a66290cbab88010caa8bc00c1dd (diff)
i965: Add support for GL_EXT_texture_array and GL_MESA_texture_array.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 9aabb7a1d70..dc91852753f 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -100,6 +100,11 @@ GLboolean 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;
ctx->Const.MaxTextureRectSize = (1<<12);
ctx->Const.MaxTextureMaxAnisotropy = 16.0;