Mesa (master): vc4: Fix off-by-one in texture maximum levels.

Eric Anholt anholt at kemper.freedesktop.org
Tue Aug 12 21:20:49 UTC 2014


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

Author: Eric Anholt <eric at anholt.net>
Date:   Mon Aug 11 15:37:05 2014 -0700

vc4: Fix off-by-one in texture maximum levels.

It's 2048x2048 that's the max, not 1024x1024.

---

 src/gallium/drivers/vc4/vc4_screen.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/vc4/vc4_screen.h b/src/gallium/drivers/vc4/vc4_screen.h
index a761122..998bbac 100644
--- a/src/gallium/drivers/vc4/vc4_screen.h
+++ b/src/gallium/drivers/vc4/vc4_screen.h
@@ -37,7 +37,7 @@ struct vc4_bo;
 #define VC4_DEBUG_PERF      0x0020
 #define VC4_DEBUG_NORAST    0x0040
 
-#define VC4_MAX_MIP_LEVELS 11
+#define VC4_MAX_MIP_LEVELS 12
 
 struct vc4_screen {
         struct pipe_screen base;




More information about the mesa-commit mailing list