mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
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@itsqueeze.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
8dadef2ec5
commit
e096011def
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue