[Mesa-dev] [PATCH] anv: set command buffer to NULL when allocations fail
Chad Versace
chadversary at chromium.org
Wed Jan 25 21:54:21 UTC 2017
On Wed 25 Jan 2017, Lionel Landwerlin wrote:
> The spec section 5.2 says:
>
> "vkAllocateCommandBuffers can be used to create multiple command
> buffers. If the creation of any of those command buffers fails, the
> implementation must destroy all successfully created command buffer
> objects from this command, set all entries of the pCommandBuffers
> array to VK_NULL_HANDLE and return the error."
>
> Fixes:
> dEQP-VK.api.object_management.alloc_callback_fail_multiple.command_buffer_primary
> dEQP-VK.api.object_management.alloc_callback_fail_multiple.command_buffer_secondary
>
> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
> ---
> src/intel/vulkan/anv_cmd_buffer.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
Reviewed-by: Chad Versace <chadversary at chromium.org>
More information about the mesa-dev
mailing list