From 60664d86fc5d0cbcead08701ad3af51837e52297 Mon Sep 17 00:00:00 2001 From: DrChat Date: Sun, 12 Feb 2017 21:59:55 -0600 Subject: [PATCH] Vulkan UI: Fix erroneously signaling image usage semaphore --- src/xenia/ui/vulkan/vulkan_swap_chain.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/ui/vulkan/vulkan_swap_chain.cc b/src/xenia/ui/vulkan/vulkan_swap_chain.cc index b051c05d3..06ea5a318 100644 --- a/src/xenia/ui/vulkan/vulkan_swap_chain.cc +++ b/src/xenia/ui/vulkan/vulkan_swap_chain.cc @@ -561,7 +561,7 @@ bool VulkanSwapChain::End() { post_image_memory_barrier.pNext = nullptr; post_image_memory_barrier.srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; - post_image_memory_barrier.dstAccessMask = 0; + post_image_memory_barrier.dstAccessMask = VK_ACCESS_MEMORY_READ_BIT; post_image_memory_barrier.oldLayout = current_buffer.image_layout; post_image_memory_barrier.newLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR; post_image_memory_barrier.srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; @@ -598,7 +598,7 @@ bool VulkanSwapChain::End() { render_submit_info.pWaitDstStageMask = &wait_dst_stage; render_submit_info.commandBufferCount = 1; render_submit_info.pCommandBuffers = &cmd_buffer_; - render_submit_info.signalSemaphoreCount = uint32_t(semaphores.size()); + render_submit_info.signalSemaphoreCount = uint32_t(semaphores.size()) - 1; render_submit_info.pSignalSemaphores = semaphores.data(); { std::lock_guard queue_lock(device_->primary_queue_mutex());