Mesa (master): broadcom/vc5: Fix 3D miplevel limit to match other texture targets.
Eric Anholt
anholt at kemper.freedesktop.org
Wed Mar 21 17:04:23 UTC 2018
Module: Mesa
Branch: master
Commit: f735ac6b1ce181015db3dde698c31580b92d4725
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f735ac6b1ce181015db3dde698c31580b92d4725
Author: Eric Anholt <eric at anholt.net>
Date: Tue Mar 20 10:48:11 2018 -0700
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.
---
src/gallium/drivers/vc5/vc5_screen.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/gallium/drivers/vc5/vc5_screen.c b/src/gallium/drivers/vc5/vc5_screen.c
index 5f505c9a3d..add5a2f358 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;
More information about the mesa-commit
mailing list