radeonsi: Ensure fmask_format is initialized in release builds.
authorVinson Lee <vlee@freedesktop.org>
Sat, 17 Aug 2013 22:47:50 +0000 (15:47 -0700)
committerVinson Lee <vlee@freedesktop.org>
Mon, 19 Aug 2013 16:19:19 +0000 (09:19 -0700)
Fixes "Uninitialized scalar variable" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_state.c

index 06c349d4024e472832965ab4976056fc6b06ebc7..6410e45a5cd4281d6b70a69b47df89fb0dc6ccf9 100644 (file)
@@ -2728,6 +2728,7 @@ static struct pipe_sampler_view *si_create_sampler_view(struct pipe_context *ctx
                        break;
                default:
                        assert(0);
+                       fmask_format = V_008F14_IMG_DATA_FORMAT_INVALID;
                }
 
                view->fmask_state[0] = va >> 8;