anv/pipeline_cache: free NIR shader cache
Fixes: f6aa9f7185
'anv/pipeline_cache: Add support for caching NIR'
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
@@ -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 *
|
||||
|
Reference in New Issue
Block a user