mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-21 03:21:02 +00:00
Don't flush coherent maps on vulkan when there are no command buffers
* Normally this is handled by checking referenced IDs, but we now unconditionally flush memory with BDA buffers bound to it.
This commit is contained in:
1 file changed
+3
@@ -998,6 +998,9 @@ void WrappedVulkan::CaptureQueueSubmit(VkQueue queue,
|
||||
GetResourceManager()->MarkResourceFrameReferenced(GetResID(fence), eFrameRef_Read);
|
||||
|
||||
rdcarray<VkResourceRecord *> maps;
|
||||
|
||||
// don't flush maps when there are no command buffers
|
||||
if(!commandBuffers.empty())
|
||||
{
|
||||
SCOPED_LOCK(m_CoherentMapsLock);
|
||||
maps = m_CoherentMaps;
|
||||
|
||||
Reference in new issue
Block a user