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

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

radv: handle DCC image transitions before CMASK/FMASK transitions

Mostly because DCC implies a fast-clear eliminate and we
should be able to skip some DCC decompressions by setting
a predicate like for CMASK and FMASK.

Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Reviewed-by: Bas Niuwenhuizen <b...@basnieuwenhuizen.nl>

---

 src/amd/vulkan/radv_cmd_buffer.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index f73526b5fc..92c00f5394 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -3854,15 +3854,15 @@ static void radv_handle_image_transition(struct 
radv_cmd_buffer *cmd_buffer,
                                                   dst_queue_mask, range,
                                                   pending_clears);
 
-       if (radv_image_has_cmask(image) || radv_image_has_fmask(image))
-               radv_handle_cmask_image_transition(cmd_buffer, image, 
src_layout,
-                                                  dst_layout, src_queue_mask,
-                                                  dst_queue_mask, range);
-
        if (radv_image_has_dcc(image))
                radv_handle_dcc_image_transition(cmd_buffer, image, src_layout,
                                                 dst_layout, src_queue_mask,
                                                 dst_queue_mask, range);
+
+       if (radv_image_has_cmask(image) || radv_image_has_fmask(image))
+               radv_handle_cmask_image_transition(cmd_buffer, image, 
src_layout,
+                                                  dst_layout, src_queue_mask,
+                                                  dst_queue_mask, range);
 }
 
 void radv_CmdPipelineBarrier(

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

Reply via email to