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 6e4bb8253ed36f911a0a45dfecf89c237a8cd362)
This commit is contained in:
parent
22c416e1c8
commit
ed75400a50
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue