From ec92dc75e5c2df268e1cf540d29744f4bd6c6dc8 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Thu, 16 Dec 2021 06:58:57 +0000 Subject: [PATCH] rendervulkan: Fix release barrier Need to use our queueFamilyIndex as the src. --- src/rendervulkan.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/rendervulkan.cpp b/src/rendervulkan.cpp index 64e6834..2b7c4e3 100644 --- a/src/rendervulkan.cpp +++ b/src/rendervulkan.cpp @@ -2355,9 +2355,10 @@ bool vulkan_composite( struct Composite_t *pComposite, struct VulkanPipeline_t * .dstAccessMask = useForeignQueue ? (VkAccessFlagBits)0 : VK_ACCESS_MEMORY_READ_BIT, .oldLayout = VK_IMAGE_LAYOUT_GENERAL, .newLayout = VK_IMAGE_LAYOUT_GENERAL, - .srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED, - .dstQueueFamilyIndex = useForeignQueue ? VK_QUEUE_FAMILY_FOREIGN_EXT - : VK_QUEUE_FAMILY_IGNORED, + .srcQueueFamilyIndex = queueFamilyIndex, + .dstQueueFamilyIndex = useForeignQueue + ? VK_QUEUE_FAMILY_FOREIGN_EXT + : queueFamilyIndex, .image = compositeImage, .subresourceRange = subResRange };