Module: Mesa Branch: master Commit: 4705a5dfda38f40e4d4827058738490d164f198c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4705a5dfda38f40e4d4827058738490d164f198c
Author: Bas Nieuwenhuizen <[email protected]> Date: Tue Jun 19 23:48:46 2018 +0200 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]> --- src/amd/vulkan/radv_meta_clear.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_meta_clear.c b/src/amd/vulkan/radv_meta_clear.c index 14af256082..e9af053285 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; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
