broadcom/vc5: Fix 3D miplevel limit to match other texture targets.
authorEric Anholt <eric@anholt.net>
Tue, 20 Mar 2018 17:48:11 +0000 (10:48 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 21 Mar 2018 17:04:21 +0000 (10:04 -0700)
Fixes segfault in
GTF-GLES3.gtf.GL3Tests.texture_storage.texture_storage_texture_levels on
level 13.

src/gallium/drivers/vc5/vc5_screen.c

index 5f505c9a3d52662641d7f891cc59e5de50d82af4..add5a2f3586655f8c6805562338c681007288615 100644 (file)
@@ -271,9 +271,8 @@ vc5_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
                 /* Texturing. */
         case PIPE_CAP_MAX_TEXTURE_2D_LEVELS:
         case PIPE_CAP_MAX_TEXTURE_CUBE_LEVELS:
-                return VC5_MAX_MIP_LEVELS;
         case PIPE_CAP_MAX_TEXTURE_3D_LEVELS:
-                return 256;
+                return VC5_MAX_MIP_LEVELS;
         case PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS:
                 return 2048;