summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2017-03-09 10:44:13 +0100
committerIago Toral Quiroga <[email protected]>2017-03-16 11:40:05 +0100
commita578b06d7bd6d1bb075bc9b8b04af97118bee18f (patch)
tree2c8545c1ceaa5dcf15b6768299e616e62e4c5434 /src
parenta752c4ecdaa2084a4335993947512cd0eaa79046 (diff)
anv/device: assert that commands submitted to a queue are not bogus
Any errors that may have happened during the command buffer recording are reported by vkEndCommandBuffer() and it is the application's reponsibility to not submit broken commands to a queue. Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/intel/vulkan/anv_device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 253cd39d7fb..014b2f7d9cc 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -1306,6 +1306,7 @@ VkResult anv_QueueSubmit(
ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer,
pSubmits[i].pCommandBuffers[j]);
assert(cmd_buffer->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY);
+ assert(!anv_batch_has_error(&cmd_buffer->batch));
result = anv_cmd_buffer_execbuf(device, cmd_buffer);
if (result != VK_SUCCESS)