turnip: add a comment to tu_render_pass_cond_config

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21206>
This commit is contained in:
Chia-I Wu 2023-02-08 12:25:17 -08:00 committed by Marge Bot
parent 487ac6dbd6
commit 37f6714fe7

View file

@ -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 =