tu: Fix misleading lrz_disabled_at_draw values for RP
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

tu_render_pass_state_merge checks if lrz_disable_reason is NULL,
but it wasn't initialized to NULL.

Fixes: d6684aedf4 ("tu: Track at which draw call LRZ is disabled")

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39263>
This commit is contained in:
Danylo Piliaiev 2026-01-12 12:52:45 +01:00 committed by Marge Bot
parent daf235c607
commit d5199e2d29

View file

@ -345,7 +345,7 @@ tu_lrz_begin_renderpass(struct tu_cmd_buffer *cmd)
{
const struct tu_render_pass *pass = cmd->state.pass;
cmd->state.rp.lrz_disable_reason = "";
cmd->state.rp.lrz_disable_reason = NULL;
cmd->state.rp.lrz_disabled_at_draw = 0;
cmd->state.rp.lrz_write_disabled_at_draw = 0;