mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 22:00:13 +01:00
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:
parent
0862929bf6
commit
1c1ae6376c
1 changed files with 7 additions and 0 deletions
|
|
@ -258,6 +258,13 @@ anv_pipeline_cache_finish(struct anv_pipeline_cache *cache)
|
||||||
|
|
||||||
_mesa_hash_table_destroy(cache->cache, NULL);
|
_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 *
|
static struct anv_shader_bin *
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue