Module: Mesa Branch: main Commit: 74fc367127ccf945f4c649dd6ddff955c802e36e URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=74fc367127ccf945f4c649dd6ddff955c802e36e
Author: Rajnesh Kanwal <[email protected]> Date: Fri Aug 12 16:46:42 2022 +0100 pvr: Implement vkResetDescriptorPool API. Signed-off-by: Rajnesh Kanwal <[email protected]> Reviewed-by: Karmjit Mahil <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18060> --- src/imagination/vulkan/pvr_descriptor_set.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/imagination/vulkan/pvr_descriptor_set.c b/src/imagination/vulkan/pvr_descriptor_set.c index a95acb716d0..b2e9a48789c 100644 --- a/src/imagination/vulkan/pvr_descriptor_set.c +++ b/src/imagination/vulkan/pvr_descriptor_set.c @@ -1075,7 +1075,18 @@ VkResult pvr_ResetDescriptorPool(VkDevice _device, VkDescriptorPool descriptorPool, VkDescriptorPoolResetFlags flags) { - assert(!"Unimplemented"); + PVR_FROM_HANDLE(pvr_descriptor_pool, pool, descriptorPool); + PVR_FROM_HANDLE(pvr_device, device, _device); + + list_for_each_entry_safe (struct pvr_descriptor_set, + set, + &pool->descriptor_sets, + link) { + pvr_free_descriptor_set(device, pool, set); + } + + pool->current_size_in_dwords = 0; + return VK_SUCCESS; }
