diff options
author | Samuel Pitoiset <[email protected]> | 2018-04-13 19:14:50 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-04-16 14:20:59 +0200 |
commit | 7e84d698611fce27c625a270408fa0137e4b803b (patch) | |
tree | a45dee2669bb71e689d7bc155b48141756e47037 /src/amd | |
parent | 584d1f2711e07f0c0bf159ddde9c7bf127591437 (diff) |
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 <[email protected]>
Reviewed-by: Bas Niuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 4 |
1 files changed, 1 insertions, 3 deletions
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); |