From 4c5ade8ca6114435cfc1244675e825d913d85c38 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 10 Jul 2019 12:46:30 +0200 Subject: [PATCH] zink: drop unused argument Because si.waitSemaphoreCount is 0, this won't even be looked at by the driver, so let's just drop it. Acked-by: Jordan Justen --- src/gallium/drivers/zink/zink_batch.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gallium/drivers/zink/zink_batch.c b/src/gallium/drivers/zink/zink_batch.c index 1f87e874aaf..c8a4883a807 100644 --- a/src/gallium/drivers/zink/zink_batch.c +++ b/src/gallium/drivers/zink/zink_batch.c @@ -73,15 +73,13 @@ zink_end_batch(struct zink_context *ctx, struct zink_batch *batch) if (!batch->fence) return; - VkPipelineStageFlags wait = VK_PIPELINE_STAGE_ALL_COMMANDS_BIT; - VkSubmitInfo si = {}; si.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO; si.waitSemaphoreCount = 0; si.pWaitSemaphores = NULL; si.signalSemaphoreCount = 0; si.pSignalSemaphores = NULL; - si.pWaitDstStageMask = &wait; + si.pWaitDstStageMask = NULL; si.commandBufferCount = 1; si.pCommandBuffers = &batch->cmdbuf; -- 2.30.2