Vulkan CP: Specify wait stage for swap sync

This commit is contained in:
Dr. Chat 2017-01-28 11:42:50 -06:00
parent 9135b6d9ac
commit c416cbb61d
1 changed files with 5 additions and 0 deletions

View File

@ -391,8 +391,13 @@ void VulkanCommandProcessor::PerformSwap(uint32_t frontbuffer_ptr,
submit_info.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO; submit_info.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO;
submit_info.commandBufferCount = uint32_t(submit_buffers.size()); submit_info.commandBufferCount = uint32_t(submit_buffers.size());
submit_info.pCommandBuffers = submit_buffers.data(); 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.waitSemaphoreCount = 1;
submit_info.pWaitSemaphores = &swap_sem; submit_info.pWaitSemaphores = &swap_sem;
submit_info.pWaitDstStageMask = sem_waits;
submit_info.signalSemaphoreCount = 1; submit_info.signalSemaphoreCount = 1;
submit_info.pSignalSemaphores = &swap_sem; submit_info.pSignalSemaphores = &swap_sem;