From dd6decfabadea7b75c69ebc2ca5ea2295bf5351d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20No=C3=ABl?= Date: Mon, 19 Feb 2024 15:20:05 +0100 Subject: [PATCH] zink: do not use undefined stage mask if on missing KHR_synchronization2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit VK_PIPELINE_STAGE_NONE can only be set as dstStageMask if KHR_synchronization2 is defined. Signed-off-by: Corentin Noël Part-of: --- src/gallium/drivers/zink/zink_batch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_batch.c b/src/gallium/drivers/zink/zink_batch.c index 7ea04e89ce3..1a523356069 100644 --- a/src/gallium/drivers/zink/zink_batch.c +++ b/src/gallium/drivers/zink/zink_batch.c @@ -717,7 +717,7 @@ submit_queue(void *data, void *gdata, int thread_index) mb.dstAccessMask = VK_ACCESS_NONE; VKSCR(CmdPipelineBarrier)(bs->reordered_cmdbuf, bs->unordered_write_stages, - VK_PIPELINE_STAGE_NONE, + screen->info.have_KHR_synchronization2 ? VK_PIPELINE_STAGE_NONE : VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT, 0, 1, &mb, 0, NULL, 0, NULL); } VRAM_ALLOC_LOOP(result,