freedreno/drm: Also clean ring_cache
We also need to release all the entries from the ring_cache when tearing down the dev. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6900>
This commit is contained in:
parent
98093e2780
commit
27c8d97657
|
@ -111,6 +111,7 @@ static void fd_device_del_impl(struct fd_device *dev)
|
|||
{
|
||||
int close_fd = dev->closefd ? dev->fd : -1;
|
||||
fd_bo_cache_cleanup(&dev->bo_cache, 0);
|
||||
fd_bo_cache_cleanup(&dev->ring_cache, 0);
|
||||
_mesa_hash_table_destroy(dev->handle_table, NULL);
|
||||
_mesa_hash_table_destroy(dev->name_table, NULL);
|
||||
dev->funcs->destroy(dev);
|
||||
|
|
Loading…
Reference in New Issue