summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2017-03-08 13:16:16 +0100
committerIago Toral Quiroga <[email protected]>2017-03-16 11:40:05 +0100
commit8174e638690fc00caff739655b2d723ed0641472 (patch)
tree923edfc2309077213c29cc547e5f4991d37e49fc /src/intel
parent68d88f0237cbd743db83c8ad3e313251ab8fcff8 (diff)
anv/cmd_buffer: report tracked errors in vkEndCommandBuffer()
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/vulkan/genX_cmd_buffer.c3
1 files changed, 3 insertions, 0 deletions
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.
*/