vc4: Fix off-by-one in texture maximum levels.
authorEric Anholt <eric@anholt.net>
Mon, 11 Aug 2014 22:37:05 +0000 (15:37 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 12 Aug 2014 21:03:34 +0000 (14:03 -0700)
It's 2048x2048 that's the max, not 1024x1024.

src/gallium/drivers/vc4/vc4_screen.h

index a761122637fd531afa372152319011283992864b..998bbac0416ad92faaaa119b69301dd52f46dad9 100644 (file)
@@ -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;