From 8174e638690fc00caff739655b2d723ed0641472 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Wed, 8 Mar 2017 13:16:16 +0100 Subject: [PATCH] anv/cmd_buffer: report tracked errors in vkEndCommandBuffer() Reviewed-by: Topi Pohjolainen --- src/intel/vulkan/genX_cmd_buffer.c | 3 +++ 1 file changed, 3 insertions(+) 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. */ -- 2.30.2