Make sure to set m_LastCmdBufferID in vkCmdWaitEvents

* Without this, it's treated as a host operation not a queue/command
  operation and isn't placed correctly in the event stream.
This commit is contained in:
baldurk
2017-07-05 14:58:24 +01:00
parent e2a624e359
commit cd0856cd4c
@@ -668,6 +668,9 @@ bool WrappedVulkan::Serialise_vkCmdWaitEvents(
SERIALISE_ELEMENT(VkPipelineStageFlagBits, srcStages, (VkPipelineStageFlagBits)srcStageMask);
SERIALISE_ELEMENT(VkPipelineStageFlagBits, destStages, (VkPipelineStageFlagBits)dstStageMask);
if(m_State < WRITING)
m_LastCmdBufferID = cmdid;
// we don't serialise the original events as we are going to replace this
// with our own