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:
Rob Clark 2020-09-28 14:25:11 -07:00 committed by Marge Bot
parent 98093e2780
commit 27c8d97657
1 changed files with 1 additions and 0 deletions

View File

@ -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);