panvk: ensure res table is restored after meta

Set res_table to 0 to ensure that the res table is re-emitted.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Fixes: 5067921349 ("panvk: Switch to vk_meta")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32044>
This commit is contained in:
Chia-I Wu
2024-11-06 21:30:33 -08:00
committed by Marge Bot
parent 8906816f49
commit 015f6a7aff
+7
View File
@@ -71,6 +71,10 @@ panvk_per_arch(cmd_meta_compute_end)(
cmdbuf->state.compute.shader = save_ctx->cs.shader;
cmdbuf->state.compute.cs.desc = save_ctx->cs.desc;
#if PAN_ARCH >= 9
cmdbuf->state.compute.cs.desc.res_table = 0;
#endif
}
void
@@ -136,6 +140,9 @@ panvk_per_arch(cmd_meta_gfx_end)(
cmdbuf->state.gfx.vs.attribs = 0;
cmdbuf->state.gfx.vs.attrib_bufs = 0;
cmdbuf->state.gfx.fs.rsd = 0;
#else
cmdbuf->state.gfx.fs.desc.res_table = 0;
cmdbuf->state.gfx.vs.desc.res_table = 0;
#endif
cmdbuf->vk.dynamic_graphics_state = save_ctx->dyn_state.all;