mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 20:48:08 +02:00
turnip: fix wrong size for lrz cs when lrz_track_quirk is enabled.
Fixes: 4b5f0d98fd ("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>
This commit is contained in:
parent
6d063ec900
commit
d2e769c1b6
1 changed files with 3 additions and 1 deletions
|
|
@ -3912,8 +3912,10 @@ tu6_draw_common(struct tu_cmd_buffer *cmd,
|
|||
|
||||
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue