tu: Fix condition for re-emitting FDM-related state

Even when FDM isn't enabled, we can still emit patchpoints and duplicate
the viewport per-view or per-layer because the pipeline may include
VK_PIPELINE_CREATE_RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT.
Before 25202d3e47 ("tu: Remove fdm argument from tu6_emit_tile_select")
we just silently skipped applying those patchpoints, but now we actually
apply them which means we need to re-emit viewport and scissor for
subsequent render passes.

Fixes: 25202d3e47 ("tu: Remove fdm argument from tu6_emit_tile_select")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39965>
This commit is contained in:
Connor Abbott 2026-02-18 10:23:25 -05:00 committed by Marge Bot
parent f69c26fb06
commit 8628523f0f

View file

@ -4213,7 +4213,7 @@ tu_cmd_render_tiles(struct tu_cmd_buffer *cmd,
* via the patchpoints, so we need to re-emit them if they are reused for a
* later render pass.
*/
if (cmd->state.pass->has_fdm)
if (cmd->fdm_bin_patchpoints.size != 0)
cmd->state.dirty |= TU_CMD_DIRTY_FDM;
/* Reset the gmem store CS entry lists so that the next render pass