From: Eric Anholt Date: Tue, 20 Mar 2018 17:48:11 +0000 (-0700) Subject: broadcom/vc5: Fix 3D miplevel limit to match other texture targets. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f735ac6b1ce181015db3dde698c31580b92d4725;p=mesa.git 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. --- 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;