mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
tu: Disable LRZ when resuming if the GPU doesn't support tracking
We rely on tu_lrz_flush_valid_at_suspending_rp_boundary() to make sure
that subsequent resuming renderpasses get the correct LRZ state. However
this doesn't work on early a6xx GPUs without tracking support. Disable
LRZ in this case, similar to secondaries.
Cc: mesa-stable
(cherry picked from commit 638b10c5e0)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41402>
This commit is contained in:
parent
76fbca6000
commit
331e9a3ce9
2 changed files with 2 additions and 2 deletions
|
|
@ -1334,7 +1334,7 @@
|
|||
"description": "tu: Disable LRZ when resuming if the GPU doesn't support tracking",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ tu_lrz_init_state(struct tu_cmd_buffer *cmd,
|
|||
bool has_gpu_tracking =
|
||||
cmd->device->physical_device->info->props.has_lrz_dir_tracking;
|
||||
|
||||
if (!has_gpu_tracking && !clears_depth)
|
||||
if (!has_gpu_tracking && (!clears_depth || cmd->state.resuming))
|
||||
return;
|
||||
|
||||
/* We need to always have an LRZ view just to disable it if there is a
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue