Add some more marker regions for self-hosted captures

This commit is contained in:
baldurk
2020-07-06 17:26:21 +01:00
parent 9f2fdd6d64
commit 3b6cfd4926
2 changed files with 11 additions and 0 deletions
@@ -994,6 +994,8 @@ void VulkanReplay::ClearOutputWindowColor(uint64_t id, FloatVector col)
VkCommandBuffer cmd = m_pDriver->GetNextCmd();
const VkDevDispatchTable *vt = ObjDisp(dev);
VkMarkerRegion::Begin("ClearOutputWindowColor", cmd);
VkCommandBufferBeginInfo beginInfo = {VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO, NULL,
VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT};
@@ -1020,6 +1022,8 @@ void VulkanReplay::ClearOutputWindowColor(uint64_t id, FloatVector col)
outw.bbBarrier.srcAccessMask = outw.bbBarrier.dstAccessMask;
outw.bbBarrier.oldLayout = outw.bbBarrier.newLayout;
VkMarkerRegion::End(cmd);
vt->EndCommandBuffer(Unwrap(cmd));
#if ENABLED(SINGLE_FLUSH_VALIDATE)
@@ -1097,6 +1101,8 @@ void VulkanReplay::FlipOutputWindow(uint64_t id)
VkCommandBuffer cmd = m_pDriver->GetNextCmd();
const VkDevDispatchTable *vt = ObjDisp(dev);
VkMarkerRegion::Begin("FlipOutputWindow", cmd);
VkCommandBufferBeginInfo beginInfo = {VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO, NULL,
VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT};
@@ -1184,6 +1190,8 @@ void VulkanReplay::FlipOutputWindow(uint64_t id)
outw.colBarrier[outw.curidx].srcAccessMask = 0;
outw.colBarrier[outw.curidx].dstAccessMask = 0;
VkMarkerRegion::End(cmd);
vt->EndCommandBuffer(Unwrap(cmd));
// submit all the cmds we recorded
@@ -484,6 +484,8 @@ bool VulkanReplay::RenderTextureInternal(TextureDisplay cfg, const ImageState &i
VkCommandBuffer cmd = m_pDriver->GetNextCmd();
VkMarkerRegion::Begin("RenderTexture", cmd);
VkCommandBufferBeginInfo beginInfo = {VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO, NULL,
VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT};
@@ -565,6 +567,7 @@ bool VulkanReplay::RenderTextureInternal(TextureDisplay cfg, const ImageState &i
}
m_pDriver->InlineCleanupImageBarriers(cmd, cleanupBarriers);
VkMarkerRegion::End(cmd);
vt->EndCommandBuffer(Unwrap(cmd));
if(!cleanupBarriers.empty())
{