We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fcd5f0 commit 6d2fe9dCopy full SHA for 6d2fe9d
renderdoc/driver/vulkan/vk_core.cpp
@@ -481,6 +481,14 @@ void WrappedVulkan::FlushQ()
481
// CPU-GPU sync or whether it is just looking to recycle command buffers
482
// (Particularly the one in vkQueuePresentKHR drawing the overlay)
483
484
+ // if there are multiple queue submissions in flight, wait for the previous queue to finish
485
+ if(m_PrevQueue != m_Queue)
486
+ {
487
+ if(m_PrevQueue != VK_NULL_HANDLE)
488
+ ObjDisp(m_PrevQueue)->QueueWaitIdle(Unwrap(m_PrevQueue));
489
+ m_PrevQueue = VK_NULL_HANDLE;
490
+ }
491
+
492
// see comment in SubmitQ()
493
if(m_Queue != VK_NULL_HANDLE)
494
{
0 commit comments