From: Iago Toral Quiroga Date: Wed, 8 Mar 2017 12:18:52 +0000 (+0100) Subject: anv/cmd_buffer: skip vkCmdEndRenderPass() for broken command buffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d823f381a5bdac721ca7ce142ed8aeb55fc2bc0c;p=mesa.git anv/cmd_buffer: skip vkCmdEndRenderPass() for broken command buffers Reviewed-by: Topi Pohjolainen --- diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 69046658513..6c12a7edc2d 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -2536,6 +2536,9 @@ void genX(CmdEndRenderPass)( { ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer, commandBuffer); + if (anv_batch_has_error(&cmd_buffer->batch)) + return; + anv_cmd_buffer_resolve_subpass(cmd_buffer); /* Perform transitions to the final layout after all writes have occurred.