vc4: Claim the GL 2.1 minimum for 3D textures.
authorEric Anholt <eric@anholt.net>
Tue, 12 Aug 2014 17:06:48 +0000 (10:06 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 12 Aug 2014 21:19:49 +0000 (14:19 -0700)
We don't actually do them (or even fake them) currently, but it does get
us a bunch of unrelated glean glsl1 tests passing, which previously would
error out due to glean assuming the minimums on a 3D texture that 2 of the
subtests use.

src/gallium/drivers/vc4/vc4_screen.c

index 4c83db33165b33a9b8a4a986ee9831bddefdde12..c044c8ee697a089beb8fd00843e9d8dd84134b11 100644 (file)
@@ -176,7 +176,8 @@ vc4_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
         case PIPE_CAP_MAX_TEXTURE_CUBE_LEVELS:
                 return VC4_MAX_MIP_LEVELS;
         case PIPE_CAP_MAX_TEXTURE_3D_LEVELS:
-                return 1;
+                /* Note: Not supported in hardware, just faking it. */
+                return 5;
         case PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS:
                 return 0;