From: Iago Toral Quiroga Date: Wed, 8 Mar 2017 12:16:16 +0000 (+0100) Subject: anv/cmd_buffer: report tracked errors in vkEndCommandBuffer() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8174e638690fc00caff739655b2d723ed0641472;p=mesa.git anv/cmd_buffer: report tracked errors in vkEndCommandBuffer() Reviewed-by: Topi Pohjolainen --- diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 0e24000a5af..1f4fe773a11 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -620,6 +620,9 @@ genX(EndCommandBuffer)( { ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer, commandBuffer); + if (anv_batch_has_error(&cmd_buffer->batch)) + return cmd_buffer->batch.status; + /* We want every command buffer to start with the PMA fix in a known state, * so we disable it at the end of the command buffer. */