Skip to content

Commit

Permalink
turnip: add a comment to tu_render_pass_cond_config
Browse files Browse the repository at this point in the history
  • Loading branch information
olvaffe authored and Marge Bot committed Feb 10, 2023
1 parent 487ac6d commit 37f6714
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/freedreno/vulkan/tu_pass.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 37f6714

Please sign in to comment.