venus: add missing shmem pool fini for cs_shmem pool

This is missed from the fail path. No need to backport since there's
nothing leaked from this yet.

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26179>
This commit is contained in:
Yiwei Zhang 2023-11-07 19:32:25 -08:00 committed by Marge Bot
parent 8ac7d78bf3
commit 9c9e097585

View file

@ -710,6 +710,8 @@ vn_CreateInstance(const VkInstanceCreateInfo *pCreateInfo,
return VK_SUCCESS;
fail:
vn_renderer_shmem_pool_fini(instance->renderer, &instance->cs_shmem.pool);
if (instance->ring.shmem) {
uint32_t destroy_ring_data[4];
struct vn_cs_encoder local_enc = VN_CS_ENCODER_INITIALIZER_LOCAL(