vulkan: Implement of a bunch of VkCommandPool functions
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14917>
This commit is contained in:
committed by
Marge Bot
parent
f424d1e9ab
commit
37f3da90dd
@@ -39,6 +39,8 @@ vk_command_buffer_init(struct vk_command_buffer *command_buffer,
|
||||
util_dynarray_init(&command_buffer->labels, NULL);
|
||||
command_buffer->region_begin = true;
|
||||
|
||||
list_add(&command_buffer->pool_link, &pool->command_buffers);
|
||||
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -52,6 +54,7 @@ vk_command_buffer_reset(struct vk_command_buffer *command_buffer)
|
||||
void
|
||||
vk_command_buffer_finish(struct vk_command_buffer *command_buffer)
|
||||
{
|
||||
list_del(&command_buffer->pool_link);
|
||||
util_dynarray_fini(&command_buffer->labels);
|
||||
vk_object_base_finish(&command_buffer->base);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user