Fixes:
4b5f0d98fd5 ("tu: Overhaul LRZ, implement on-GPU dir tracking and
LRZ fast-clear")
Signed-off-by: Hyunjun Ko <zzoon@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17289>
if (dirty_lrz) {
struct tu_cs cs;
+ uint32_t size = cmd->device->physical_device->info->a6xx.lrz_track_quirk ? 10 : 8;
+
cmd->state.lrz_and_depth_plane_state =
- tu_cs_draw_state(&cmd->sub_cs, &cs, 8);
+ tu_cs_draw_state(&cmd->sub_cs, &cs, size);
tu6_emit_lrz(cmd, &cs);
tu6_build_depth_plane_z_mode(cmd, &cs);
}