panvk: Cleanup shaders linking
Signed-off-by: Lorenzo Rossi <lorenzo.rossi@collabora.com> Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Acked-by: Eric R. Smith <eric.smith@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38681>
This commit is contained in:
parent
dfc05286b9
commit
1ea08a05d0
2 changed files with 5 additions and 0 deletions
|
|
@ -402,6 +402,10 @@ panvk_destroy_cmdbuf(struct vk_command_buffer *vk_cmdbuf)
|
|||
vk_free(&cmdbuf->vk.pool->alloc, batch);
|
||||
}
|
||||
|
||||
#if PAN_ARCH < 9
|
||||
panvk_shader_link_cleanup(&cmdbuf->state.gfx.link);
|
||||
#endif
|
||||
|
||||
panvk_pool_cleanup(&cmdbuf->desc_pool);
|
||||
panvk_pool_cleanup(&cmdbuf->tls_pool);
|
||||
panvk_pool_cleanup(&cmdbuf->varying_pool);
|
||||
|
|
|
|||
|
|
@ -2262,6 +2262,7 @@ panvk_per_arch(link_shaders)(struct panvk_pool *desc_pool,
|
|||
}
|
||||
}
|
||||
|
||||
panvk_shader_link_cleanup(link);
|
||||
VkResult result = emit_varying_attrs(desc_pool, vs_layout, buf_sizes,
|
||||
buf_offsets, &link->vs.attribs);
|
||||
if (result != VK_SUCCESS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue