OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dadef2
)
util/disk_cache: finish all queue jobs in destroy instead of killing them
author
Marek Olšák
<marek.olsak@amd.com>
Wed, 23 Oct 2019 20:15:37 +0000
(16:15 -0400)
committer
Marek Olšák
<marek.olsak@amd.com>
Thu, 24 Oct 2019 00:22:50 +0000
(20:22 -0400)
If there are queued shaders to be written to disk, wait for that.
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/util/disk_cache.c
patch
|
blob
|
history
diff --git
a/src/util/disk_cache.c
b/src/util/disk_cache.c
index
77af64e
..
0cd92ca
100644
(file)
--- 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);
}