nvk: handle NULL to destroy descriptor pool

Fixes dEQP-VK.api.null_handle.destroy_descriptor_pool

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
Dave Airlie
2022-08-17 06:22:17 +10:00
committed by Marge Bot
parent 51e24cd5b0
commit 33bdd75639
+3
View File
@@ -437,6 +437,9 @@ nvk_DestroyDescriptorPool(VkDevice _device, VkDescriptorPool _pool,
VK_FROM_HANDLE(nvk_device, device, _device);
VK_FROM_HANDLE(nvk_descriptor_pool, pool, _pool);
if (!_pool)
return;
nvk_destroy_descriptor_pool(device, pAllocator, pool);
}