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

Author: Chia-I Wu <[email protected]>
Date:   Tue Aug 23 14:03:04 2022 -0700

turnip: fix a missing trace_end_gmem_clear

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

---

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

diff --git a/src/freedreno/vulkan/tu_clear_blit.c 
b/src/freedreno/vulkan/tu_clear_blit.c
index 5de3c0eb662..56e519d36cf 100644
--- a/src/freedreno/vulkan/tu_clear_blit.c
+++ b/src/freedreno/vulkan/tu_clear_blit.c
@@ -2726,12 +2726,11 @@ tu_emit_clear_gmem_attachment(struct tu_cmd_buffer *cmd,
          clear_gmem_attachment(cmd, cs, PIPE_FORMAT_Z32_FLOAT, 0xf, 
tu_attachment_gmem_offset(cmd, att), value);
       if (mask & VK_IMAGE_ASPECT_STENCIL_BIT)
          clear_gmem_attachment(cmd, cs, PIPE_FORMAT_S8_UINT, 0xf, 
tu_attachment_gmem_offset_stencil(cmd, att), value);
-      return;
+   } else {
+      clear_gmem_attachment(cmd, cs, format, aspect_write_mask(format, mask),
+                            tu_attachment_gmem_offset(cmd, att), value);
    }
 
-   clear_gmem_attachment(cmd, cs, format, aspect_write_mask(format, mask),
-                         tu_attachment_gmem_offset(cmd, att), value);
-
    trace_end_gmem_clear(&cmd->trace, cs, att->format, att->samples);
 }
 

Reply via email to