mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Don't try and wait on semaphores on replay
* We don't track & restore semaphore signalled/unsignalled state on replay, so it's not valid anyway. Just be conservative and wait for idle.
This commit is contained in:
@@ -466,8 +466,10 @@ bool WrappedVulkan::Serialise_vkQueueWaitSemaphore(Serialiser* localSerialiser,
|
||||
|
||||
if(m_State < WRITING)
|
||||
{
|
||||
// we don't track semaphore state so we don't know whether this semaphore was signalled
|
||||
// or unsignalled. To be conservative, we wait for idle.
|
||||
queue = GetResourceManager()->GetLiveHandle<VkQueue>(qid);
|
||||
ObjDisp(queue)->QueueWaitSemaphore(Unwrap(queue), Unwrap(GetResourceManager()->GetLiveHandle<VkSemaphore>(sid)));
|
||||
ObjDisp(queue)->QueueWaitIdle(Unwrap(queue));
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user