panvk: Ensure to clear dirty dynamic state in panvk_cmd_draw

This was missing and causing dynamic state to remain dirty once set.

Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com>
Fixes: 1f57aae4e4 ("panvk: Move vkCmdDraw* functions to their own file")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31089>
(cherry picked from commit e47e94f9f2)
This commit is contained in:
Mary Guillemard 2024-09-09 12:09:22 +02:00 committed by Eric Engestrom
parent 3ab2475350
commit 9b83bf0bfe
2 changed files with 2 additions and 1 deletions

View file

@ -3164,7 +3164,7 @@
"description": "panvk: Ensure to clear dirty dynamic state in panvk_cmd_draw",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "1f57aae4e4f1172c848a44e1682d73dadb14ac24",
"notes": null

View file

@ -1249,6 +1249,7 @@ panvk_cmd_draw(struct panvk_cmd_buffer *cmdbuf, struct panvk_draw_info *draw)
}
/* Clear the dirty flags all at once */
vk_dynamic_graphics_state_clear_dirty(&cmdbuf->vk.dynamic_graphics_state);
cmdbuf->state.gfx.dirty = 0;
}