From b8a9bbeb000ad9c799ee79f464010e7871900bef Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Fri, 12 Jul 2019 11:28:45 +0200 Subject: [PATCH] zink: abort on submit-failure Acked-by: Jordan Justen --- src/gallium/drivers/zink/zink_batch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_batch.c b/src/gallium/drivers/zink/zink_batch.c index c8a4883a807..2a1e7f8e65b 100644 --- a/src/gallium/drivers/zink/zink_batch.c +++ b/src/gallium/drivers/zink/zink_batch.c @@ -83,8 +83,10 @@ zink_end_batch(struct zink_context *ctx, struct zink_batch *batch) si.commandBufferCount = 1; si.pCommandBuffers = &batch->cmdbuf; - if (vkQueueSubmit(ctx->queue, 1, &si, batch->fence->fence) != VK_SUCCESS) + if (vkQueueSubmit(ctx->queue, 1, &si, batch->fence->fence) != VK_SUCCESS) { debug_printf("vkQueueSubmit failed\n"); + abort(); + } } void -- 2.30.2