From b024786cc2024b5edda7906607f8b711b7b3c856 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 22 Dec 2015 19:43:25 +0100 Subject: [PATCH] When doing a partial replay of a subsection, explicitly jump to each EID * The reason being that the actual recorded events are interleaved with others (either on the queue or the cmd buffer), so we have to skip over those. The events are duplicated where they are inserted by EID and refer to the original offsets. --- renderdoc/driver/vulkan/vk_core.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/renderdoc/driver/vulkan/vk_core.cpp b/renderdoc/driver/vulkan/vk_core.cpp index 81039f9da..fa8259df3 100644 --- a/renderdoc/driver/vulkan/vk_core.cpp +++ b/renderdoc/driver/vulkan/vk_core.cpp @@ -1287,6 +1287,9 @@ void WrappedVulkan::ContextReplayLog(LogState readType, uint32_t startEventID, u if(m_LastCmdBufferID == ResourceId() || startEventID > 1) { m_RootEventID++; + + if(startEventID > 1) + m_pSerialiser->SetOffset(GetEvent(m_RootEventID).fileOffset); } else {