vulkan: Take a vk_command_pool in vk_command_buffer_init()

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:
Jason Ekstrand
2022-02-07 13:16:20 -06:00
committed by Marge Bot
parent d59caf5d11
commit bda4c4f6b6
8 changed files with 20 additions and 13 deletions

View File

@@ -275,7 +275,7 @@ static VkResult anv_create_cmd_buffer(
if (cmd_buffer == NULL)
return vk_error(pool, VK_ERROR_OUT_OF_HOST_MEMORY);
result = vk_command_buffer_init(&cmd_buffer->vk, &device->vk, level);
result = vk_command_buffer_init(&cmd_buffer->vk, &pool->vk, level);
if (result != VK_SUCCESS)
goto fail_alloc;