panvk/csf: fix VERTEX_SPD dirty tracking when topology changes

Fixes: c7b94b098c ("panvk: Add v12 support")
Signed-off-by: Olivia Lee <olivia.lee@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41638>
This commit is contained in:
Faith Ekstrand 2025-11-07 15:11:56 -05:00 committed by Marge Bot
parent 04fe65e2bb
commit a56b15edc6

View file

@ -1760,7 +1760,8 @@ prepare_vs(struct panvk_cmd_buffer *cmdbuf, const struct panvk_draw_info *draw)
vs_desc_state->res_table);
#if PAN_ARCH >= 12
if (gfx_state_dirty(cmdbuf, VS))
if (gfx_state_dirty(cmdbuf, VS) ||
dyn_gfx_state_dirty(cmdbuf, IA_PRIMITIVE_TOPOLOGY))
cs_move64_to(b, cs_sr_reg64(b, IDVS, VERTEX_SPD), get_vs_all_spd(cmdbuf));
#else
if (gfx_state_dirty(cmdbuf, VS) ||