aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-08-17 15:47:50 -0700
committerVinson Lee <[email protected]>2013-08-19 09:19:19 -0700
commitb1d05eeb1f14e06ba122857927eb4661621df8f6 (patch)
tree682fece6f3d1c3e60f29febb57b88069024966ae /src/gallium/drivers/radeonsi
parentc6b6c936434b98b0262fd0856b00f13f43edc6ba (diff)
radeonsi: Ensure fmask_format is initialized in release builds.
Fixes "Uninitialized scalar variable" defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r--src/gallium/drivers/radeonsi/si_state.c1
1 files changed, 1 insertions, 0 deletions
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;