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:
baldurk committed 2021-09-24 14:04:29 +01:00
1 parent 7700c2a80d
commit ff92cc2ba3
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;