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

Author: Chia-I Wu <[email protected]>
Date:   Thu Aug 25 08:47:50 2022 -0700

turnip: move trace_start_gmem_store before cond exec

Suggested by Danylo.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18238>

---

 src/freedreno/vulkan/tu_clear_blit.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/freedreno/vulkan/tu_clear_blit.c 
b/src/freedreno/vulkan/tu_clear_blit.c
index 56e519d36cf..bb96557f2be 100644
--- a/src/freedreno/vulkan/tu_clear_blit.c
+++ b/src/freedreno/vulkan/tu_clear_blit.c
@@ -3323,6 +3323,8 @@ tu_store_gmem_attachment(struct tu_cmd_buffer *cmd,
    if (!dst->store && !dst->store_stencil)
       return;
 
+   trace_start_gmem_store(&cmd->trace, cs);
+
    /* Unconditional store should happen only if attachment was cleared,
     * which could have happened either by load_op or via vkCmdClearAttachments.
     */
@@ -3351,8 +3353,6 @@ tu_store_gmem_attachment(struct tu_cmd_buffer *cmd,
    bool store_common = dst->store && !resolve_d32s8_s8;
    bool store_separate_stencil = dst->store_stencil || resolve_d32s8_s8;
 
-   trace_start_gmem_store(&cmd->trace, cs);
-
    /* use fast path when render area is aligned, except for unsupported 
resolve cases */
    if (!unaligned && !resolve_d24s8_s8 &&
        (a == gmem_a || blit_can_resolve(dst->format))) {

Reply via email to