Skip to content

Commit 6d2fe9d

Browse files
committed
In Vulkan FlushQ() sync m_PrevQueue if it is active
1 parent 6fcd5f0 commit 6d2fe9d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

renderdoc/driver/vulkan/vk_core.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,14 @@ void WrappedVulkan::FlushQ()
481481
// CPU-GPU sync or whether it is just looking to recycle command buffers
482482
// (Particularly the one in vkQueuePresentKHR drawing the overlay)
483483

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+
484492
// see comment in SubmitQ()
485493
if(m_Queue != VK_NULL_HANDLE)
486494
{

0 commit comments

Comments
 (0)