pvr: Implement vkResetDescriptorPool API.

Signed-off-by: Rajnesh Kanwal <rajnesh.kanwal@imgtec.com>
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18060>
This commit is contained in:
Rajnesh Kanwal 2022-08-12 16:46:42 +01:00 committed by Marge Bot
parent bc1382eed9
commit 74fc367127
1 changed files with 12 additions and 1 deletions

View File

@ -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;
}