From e096011def908b4ac08c8e7437ffaf8bd7f46819 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 23 Oct 2019 16:15:37 -0400 Subject: [PATCH] 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 Reviewed-by: Kenneth Graunke --- 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); } -- 2.30.2