venus: fix shmem leak on vn_ring_destroy

Missed shmem unref when moving ring internals out of vn_instance.c.

Fixes: d1e29b7557 ("venus: move ring shmem into vn_ring")
Signed-off-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27125>
(cherry picked from commit 6e4bb8253e)
This commit is contained in:
Ryan Neph 2024-01-17 13:10:23 -08:00 committed by Eric Engestrom
parent 22c416e1c8
commit ed75400a50
2 changed files with 2 additions and 1 deletions

View file

@ -124,7 +124,7 @@
"description": "venus: fix shmem leak on vn_ring_destroy",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "d1e29b7557877c9b278593b8f0c7e6c531849f23",
"notes": null

View file

@ -346,6 +346,7 @@ vn_ring_destroy(struct vn_ring *ring)
vk_free(alloc, submit);
vn_cs_encoder_fini(&ring->upload);
vn_renderer_shmem_unref(ring->instance->renderer, ring->shmem);
mtx_destroy(&ring->mutex);