Mesa (master): freedreno/drm: Also clean ring_cache

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Sep 29 21:10:17 UTC 2020


Module: Mesa
Branch: master
Commit: 27c8d976577effe89c336181db7d140ddbb5cfa8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=27c8d976577effe89c336181db7d140ddbb5cfa8

Author: Rob Clark <robdclark at chromium.org>
Date:   Mon Sep 28 14:25:11 2020 -0700

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 at chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6900>

---

 src/freedreno/drm/freedreno_device.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/freedreno/drm/freedreno_device.c b/src/freedreno/drm/freedreno_device.c
index fbc9bcb0984..a119c360ae6 100644
--- a/src/freedreno/drm/freedreno_device.c
+++ b/src/freedreno/drm/freedreno_device.c
@@ -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);



More information about the mesa-commit mailing list