summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2018-06-19 23:48:46 +0200
committerBas Nieuwenhuizen <[email protected]>2018-06-20 10:02:39 +0200
commit4705a5dfda38f40e4d4827058738490d164f198c (patch)
treea15c139c6cfc4669bd58cfe20fad05231445a36c /src
parentdbac8e25f851ed44c51f3ce8a08b2cdd564c5dd2 (diff)
radv: Fix flush_bits being used uninitialized.
A case of making things worse while trying to fix something minor ... Fixes: ef79457004e "radv: Merge the flush bits of CMASK & DCC clear." Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/amd/vulkan/radv_meta_clear.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_meta_clear.c b/src/amd/vulkan/radv_meta_clear.c
index 14af2560821..e9af0532859 100644
--- a/src/amd/vulkan/radv_meta_clear.c
+++ b/src/amd/vulkan/radv_meta_clear.c
@@ -994,7 +994,7 @@ emit_fast_color_clear(struct radv_cmd_buffer *cmd_buffer,
const struct radv_framebuffer *fb = cmd_buffer->state.framebuffer;
const struct radv_image_view *iview = fb->attachments[pass_att].attachment;
VkClearColorValue clear_value = clear_att->clearValue.color;
- uint32_t clear_color[2], flush_bits;
+ uint32_t clear_color[2], flush_bits = 0;
uint32_t cmask_clear_value;
bool ret;