From: Vinson Lee Date: Sat, 17 Aug 2013 22:47:50 +0000 (-0700) Subject: radeonsi: Ensure fmask_format is initialized in release builds. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b1d05eeb1f14e06ba122857927eb4661621df8f6;p=mesa.git radeonsi: Ensure fmask_format is initialized in release builds. Fixes "Uninitialized scalar variable" defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Marek Olšák --- diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 06c349d4024..6410e45a5cd 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -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;