mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 11:30:21 +01:00
tu/lrz: Call tu_lrz_write_disable_reason once per RP
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34577>
This commit is contained in:
parent
6d84dac827
commit
f903397874
1 changed files with 4 additions and 2 deletions
|
|
@ -942,8 +942,10 @@ tu6_calculate_lrz_state(struct tu_cmd_buffer *cmd,
|
|||
* fragments from draw A which should be visible due to draw B.
|
||||
*/
|
||||
if (reads_dest && z_write_enable && cmd->device->instance->conservative_lrz) {
|
||||
tu_lrz_write_disable_reason(cmd, "Depth write + blending");
|
||||
cmd->state.lrz.disable_write_for_rp = true;
|
||||
if (!cmd->state.lrz.disable_write_for_rp) {
|
||||
tu_lrz_write_disable_reason(cmd, "Depth write + blending");
|
||||
cmd->state.lrz.disable_write_for_rp = true;
|
||||
}
|
||||
temporary_disable_lrz = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue