From 2ccc5ca91ecd0a61c660e214294c4bb9891a0075 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Mon, 23 Mar 2026 14:30:22 -0400 Subject: [PATCH] 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 638b10c5e0baad900d79ef59843c317e3285659a) Part-of: --- .pick_status.json | 2 +- src/freedreno/vulkan/tu_lrz.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 1c3a538f155..a82e343efce 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -4604,7 +4604,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 diff --git a/src/freedreno/vulkan/tu_lrz.cc b/src/freedreno/vulkan/tu_lrz.cc index b4ad6085067..31771b8ff50 100644 --- a/src/freedreno/vulkan/tu_lrz.cc +++ b/src/freedreno/vulkan/tu_lrz.cc @@ -225,7 +225,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