mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-29 17:10:46 +02:00
nvk: Unref shaders on pipeline free
Fixes: d6a1e29ccd ("nvk: pipeline shader cache")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27130>
This commit is contained in:
parent
4b0448d8f8
commit
be0f04f5bd
1 changed files with 5 additions and 0 deletions
|
|
@ -32,6 +32,11 @@ nvk_pipeline_free(struct nvk_device *dev,
|
|||
struct nvk_pipeline *pipeline,
|
||||
const VkAllocationCallbacks *pAllocator)
|
||||
{
|
||||
for (uint32_t s = 0; s < ARRAY_SIZE(pipeline->shaders); s++) {
|
||||
if (pipeline->shaders[s] != NULL)
|
||||
vk_pipeline_cache_object_unref(&dev->vk, &pipeline->shaders[s]->base);
|
||||
}
|
||||
|
||||
vk_object_free(&dev->vk, pAllocator, pipeline);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue