panvk: Save and restore vertex buffer in gfx_meta

This was missing from the vk_meta switch.

This fixes
"dEQP-VK.draw.renderpass.multiple_clears_within_render_pass.*"

Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com>
Fixes: f74dd596d5 ("panvk: Add helpers to save/restore the compute/graphics state for meta operations")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30782>
This commit is contained in:
Mary Guillemard
2024-08-22 14:07:46 +02:00
committed by Marge Bot
parent a659cd3b03
commit 1710925282
+2
View File
@@ -79,6 +79,7 @@ panvk_per_arch(cmd_meta_gfx_start)(
save_ctx->fs.desc = cmdbuf->state.gfx.fs.desc;
save_ctx->vs.shader = cmdbuf->state.gfx.vs.shader;
save_ctx->vs.desc = cmdbuf->state.gfx.vs.desc;
save_ctx->vb0 = cmdbuf->state.gfx.vb.bufs[0];
save_ctx->dyn_state.all = cmdbuf->vk.dynamic_graphics_state;
save_ctx->dyn_state.vi = cmdbuf->state.gfx.dynamic.vi;
@@ -115,6 +116,7 @@ panvk_per_arch(cmd_meta_gfx_end)(
cmdbuf->state.gfx.vs.desc = save_ctx->vs.desc;
cmdbuf->state.gfx.vs.attribs = 0;
cmdbuf->state.gfx.vs.attrib_bufs = 0;
cmdbuf->state.gfx.vb.bufs[0] = save_ctx->vb0;
cmdbuf->vk.dynamic_graphics_state = save_ctx->dyn_state.all;
cmdbuf->state.gfx.dynamic.vi = save_ctx->dyn_state.vi;