summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2019-01-11 12:54:16 +0100
committerIago Toral Quiroga <[email protected]>2019-01-14 07:59:27 +0100
commit1c1ae6376c5cc6d3c2c20647aa6838f4fedd8f05 (patch)
treee35647d648ddf3c3a26ba2806450de5681ef8a5a
parent0862929bf64222e85e8242824aecf05e494c157c (diff)
anv/pipeline_cache: free NIR shader cache
Fixes: f6aa9f718516 'anv/pipeline_cache: Add support for caching NIR' Reviewed-by: Lionel Landwerlin <[email protected]>
-rw-r--r--src/intel/vulkan/anv_pipeline_cache.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_pipeline_cache.c b/src/intel/vulkan/anv_pipeline_cache.c
index f9733c53098..d96102c2873 100644
--- 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 *