zink: do not use undefined stage mask if on missing KHR_synchronization2

VK_PIPELINE_STAGE_NONE can only be set as dstStageMask if KHR_synchronization2
is defined.

Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27682>
This commit is contained in:
Corentin Noël 2024-02-19 15:20:05 +01:00 committed by Marge Bot
parent 7cafe65ea1
commit dd6decfaba

View file

@ -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,