Mesa (master): util/disk_cache: finish all queue jobs in destroy instead of killing them
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Oct 24 00:23:31 UTC 2019
Module: Mesa
Branch: master
Commit: e096011def908b4ac08c8e7437ffaf8bd7f46819
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e096011def908b4ac08c8e7437ffaf8bd7f46819
Author: Marek Olšák <marek.olsak at amd.com>
Date: Wed Oct 23 16:15:37 2019 -0400
util/disk_cache: finish all queue jobs in destroy instead of killing them
If there are queued shaders to be written to disk, wait for that.
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/util/disk_cache.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/util/disk_cache.c b/src/util/disk_cache.c
index 77af64ed3b0..0cd92ca2d5b 100644
--- a/src/util/disk_cache.c
+++ b/src/util/disk_cache.c
@@ -440,6 +440,7 @@ void
disk_cache_destroy(struct disk_cache *cache)
{
if (cache && !cache->path_init_failed) {
+ util_queue_finish(&cache->cache_queue);
util_queue_destroy(&cache->cache_queue);
munmap(cache->index_mmap, cache->index_mmap_size);
}
More information about the mesa-commit
mailing list