From: Samuel Pitoiset Date: Fri, 13 Apr 2018 17:14:50 +0000 (+0200) Subject: radv: handle CMASK/FMASK transitions only if DCC is disabled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e84d698611fce27c625a270408fa0137e4b803b;p=mesa.git radv: handle CMASK/FMASK transitions only if DCC is disabled DCC implies a fast-clear eliminate, so I think this sounds reasonable. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Niuwenhuizen --- diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index afe953d90c3..72fb6d63576 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -3841,9 +3841,7 @@ static void radv_handle_color_image_transition(struct radv_cmd_buffer *cmd_buffe !radv_layout_can_fast_clear(image, dst_layout, dst_queue_mask)) { radv_fast_clear_flush_image_inplace(cmd_buffer, image, range); } - } - - if (radv_image_has_cmask(image) || radv_image_has_fmask(image)) { + } else if (radv_image_has_cmask(image) || radv_image_has_fmask(image)) { if (radv_layout_can_fast_clear(image, src_layout, src_queue_mask) && !radv_layout_can_fast_clear(image, dst_layout, dst_queue_mask)) { radv_fast_clear_flush_image_inplace(cmd_buffer, image, range);