mirror of https://gitlab.freedesktop.org/mesa/mesa
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:
parent
bc1382eed9
commit
74fc367127
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue