Module: Mesa
Branch: master
Commit: 7e84d698611fce27c625a270408fa0137e4b803b
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7e84d698611fce27c625a270408fa0137e4b803b

Author: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Date:   Fri Apr 13 19:14:50 2018 +0200

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 <samuel.pitoi...@gmail.com>
Reviewed-by: Bas Niuwenhuizen <b...@basnieuwenhuizen.nl>

---

 src/amd/vulkan/radv_cmd_buffer.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index afe953d90c..72fb6d6357 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);

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to