nvk: add missing finish calls

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
Dave Airlie 2022-05-28 08:50:37 +10:00 committed by Marge Bot
parent 24641ecce4
commit 6725804efb
2 changed files with 2 additions and 0 deletions

View file

@ -51,5 +51,6 @@ nvk_DestroyDevice(VkDevice _device, const VkAllocationCallbacks *pAllocator)
if (!device)
return;
vk_device_finish(&device->vk);
vk_free(&device->vk.alloc, device);
}

View file

@ -222,6 +222,7 @@ void
nvk_physical_device_destroy(struct nvk_physical_device *device)
{
nouveau_ws_device_destroy(device->dev);
vk_physical_device_finish(&device->vk);
vk_free(&device->instance->vk.alloc, device);
}