Mesa (master): i965: Bump MAX_3D_TEXTURE_SIZE to 2048.

Kenneth Graunke kwg at kemper.freedesktop.org
Wed Feb 19 02:58:50 UTC 2014


Module: Mesa
Branch: master
Commit: 06b047ebc75c6af02f806d051a5703748ee76b69
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=06b047ebc75c6af02f806d051a5703748ee76b69

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Sun Feb  2 02:51:45 2014 -0800

i965: Bump MAX_3D_TEXTURE_SIZE to 2048.

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 at whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 src/mesa/drivers/dri/i965/brw_context.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 1071f9f..50d6ca1 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -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)




More information about the mesa-commit mailing list