From c416cbb61dee64d6d4c6cecaf34cd26a9750533c Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Sat, 28 Jan 2017 11:42:50 -0600 Subject: [PATCH] Vulkan CP: Specify wait stage for swap sync --- src/xenia/gpu/vulkan/vulkan_command_processor.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xenia/gpu/vulkan/vulkan_command_processor.cc b/src/xenia/gpu/vulkan/vulkan_command_processor.cc index b6e2398fa..0e87dcfb9 100644 --- a/src/xenia/gpu/vulkan/vulkan_command_processor.cc +++ b/src/xenia/gpu/vulkan/vulkan_command_processor.cc @@ -391,8 +391,13 @@ void VulkanCommandProcessor::PerformSwap(uint32_t frontbuffer_ptr, submit_info.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO; submit_info.commandBufferCount = uint32_t(submit_buffers.size()); submit_info.pCommandBuffers = submit_buffers.data(); + + VkPipelineStageFlags sem_waits[1]; + sem_waits[0] = VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT; submit_info.waitSemaphoreCount = 1; submit_info.pWaitSemaphores = &swap_sem; + submit_info.pWaitDstStageMask = sem_waits; + submit_info.signalSemaphoreCount = 1; submit_info.pSignalSemaphores = &swap_sem;