summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-03-20 10:48:11 -0700
committerEric Anholt <[email protected]>2018-03-21 10:04:21 -0700
commitf735ac6b1ce181015db3dde698c31580b92d4725 (patch)
treea990821bdd6932f3f1d0f0d1fd6d1bf7e97b9367 /src
parentba87d85b043bf4beecae1afda22ea42b217df2b8 (diff)
broadcom/vc5: Fix 3D miplevel limit to match other texture targets.
Fixes segfault in GTF-GLES3.gtf.GL3Tests.texture_storage.texture_storage_texture_levels on level 13.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/vc5/vc5_screen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/vc5/vc5_screen.c b/src/gallium/drivers/vc5/vc5_screen.c
index 5f505c9a3d5..add5a2f3586 100644
--- a/src/gallium/drivers/vc5/vc5_screen.c
+++ b/src/gallium/drivers/vc5/vc5_screen.c
@@ -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;