mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 12:50:10 +01:00
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:
parent
487ac6dbd6
commit
37f6714fe7
1 changed files with 6 additions and 0 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue