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

Author: Chia-I Wu <[email protected]>
Date:   Wed Feb  8 12:25:17 2023 -0800

turnip: add a comment to tu_render_pass_cond_config

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

---

 src/freedreno/vulkan/tu_pass.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/freedreno/vulkan/tu_pass.c b/src/freedreno/vulkan/tu_pass.c
index e6256e68bc0..e84604575db 100644
--- a/src/freedreno/vulkan/tu_pass.c
+++ b/src/freedreno/vulkan/tu_pass.c
@@ -537,6 +537,12 @@ tu_render_pass_cond_config(struct tu_render_pass *pass)
    for (uint32_t i = 0; i < pass->attachment_count; i++) {
       struct tu_render_pass_attachment *att = &pass->attachments[i];
 
+      /* When there is no geometry in a tile, and there is no other operations 
to
+       * read/write the tile, we can skip load/store.
+       *
+       * The only other operations are clear and resolve, which disable
+       * conditional load/store.
+       */
       att->cond_load_allowed =
          (att->load || att->load_stencil) && !att->clear_mask && 
!att->will_be_resolved;
       att->cond_store_allowed =

Reply via email to