i965: Bump MAX_3D_TEXTURE_SIZE to 2048.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 2 Feb 2014 10:51:45 +0000 (02:51 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 19 Feb 2014 02:58:57 +0000 (18:58 -0800)
It's highly unlikely that there will be enough memory in the system to
allocate enough space for this, but we should still expose the hardware
limit.  It's what the Intel Windows driver does, and it seems most other
vendors do likewise.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74130
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_context.c

index 1071f9f805c8af70f3e217c5670a2395585caba7..50d6ca13208b29388807843b292422af970b63a7 100644 (file)
@@ -311,7 +311,7 @@ brw_initialize_context_constants(struct brw_context *brw)
    ctx->Const.MaxTextureLevels = 14; /* 8192 */
    if (ctx->Const.MaxTextureLevels > MAX_TEXTURE_LEVELS)
       ctx->Const.MaxTextureLevels = MAX_TEXTURE_LEVELS;
-   ctx->Const.Max3DTextureLevels = 9;
+   ctx->Const.Max3DTextureLevels = 12; /* 2048 */
    ctx->Const.MaxCubeTextureLevels = 12;
 
    if (brw->gen >= 7)