rendervulkan: Fix release barrier

Need to use our queueFamilyIndex as the src.
This commit is contained in:
Joshua Ashton 2021-12-16 06:58:57 +00:00 committed by Simon Ser
parent a7b484135d
commit ec92dc75e5

View file

@ -2355,9 +2355,10 @@ bool vulkan_composite( struct Composite_t *pComposite, struct VulkanPipeline_t *
.dstAccessMask = useForeignQueue ? (VkAccessFlagBits)0 : VK_ACCESS_MEMORY_READ_BIT, .dstAccessMask = useForeignQueue ? (VkAccessFlagBits)0 : VK_ACCESS_MEMORY_READ_BIT,
.oldLayout = VK_IMAGE_LAYOUT_GENERAL, .oldLayout = VK_IMAGE_LAYOUT_GENERAL,
.newLayout = VK_IMAGE_LAYOUT_GENERAL, .newLayout = VK_IMAGE_LAYOUT_GENERAL,
.srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED, .srcQueueFamilyIndex = queueFamilyIndex,
.dstQueueFamilyIndex = useForeignQueue ? VK_QUEUE_FAMILY_FOREIGN_EXT .dstQueueFamilyIndex = useForeignQueue
: VK_QUEUE_FAMILY_IGNORED, ? VK_QUEUE_FAMILY_FOREIGN_EXT
: queueFamilyIndex,
.image = compositeImage, .image = compositeImage,
.subresourceRange = subResRange .subresourceRange = subResRange
}; };