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:
0862929
)
anv/pipeline_cache: free NIR shader cache
author
Iago Toral Quiroga
<itoral@igalia.com>
Fri, 11 Jan 2019 11:54:16 +0000
(12:54 +0100)
committer
Iago Toral Quiroga
<itoral@igalia.com>
Mon, 14 Jan 2019 06:59:27 +0000
(07:59 +0100)
Fixes:
f6aa9f718516
'anv/pipeline_cache: Add support for caching NIR'
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_pipeline_cache.c
patch
|
blob
|
history
diff --git
a/src/intel/vulkan/anv_pipeline_cache.c
b/src/intel/vulkan/anv_pipeline_cache.c
index
f9733c5
..
d96102c
100644
(file)
--- a/
src/intel/vulkan/anv_pipeline_cache.c
+++ b/
src/intel/vulkan/anv_pipeline_cache.c
@@
-258,6
+258,13
@@
anv_pipeline_cache_finish(struct anv_pipeline_cache *cache)
_mesa_hash_table_destroy(cache->cache, NULL);
}
+
+ if (cache->nir_cache) {
+ hash_table_foreach(cache->nir_cache, entry)
+ ralloc_free(entry->data);
+
+ _mesa_hash_table_destroy(cache->nir_cache, NULL);
+ }
}
static struct anv_shader_bin *