zink: abort on submit-failure
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 12 Jul 2019 09:28:45 +0000 (11:28 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 28 Oct 2019 08:51:46 +0000 (08:51 +0000)
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
src/gallium/drivers/zink/zink_batch.c

index c8a4883a8073ce1720ea645c3589f66ac4144043..2a1e7f8e65b97c8ac57c90f0252a10ffcef1e244 100644 (file)
@@ -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