Call into the drawcall callback for copy/resolve/blit/etc.

* This means that drawcall timers are fetched for those functions.
This commit is contained in:
baldurk
2016-12-12 17:33:59 +00:00
parent 4d16fc91cd
commit f48b379dbd
6 changed files with 145 additions and 12 deletions
+8 -2
View File
@@ -90,8 +90,8 @@ struct VulkanGPUTimerCallback : public VulkanDrawcallCallback
bool PostDraw(uint32_t eid, VkCommandBuffer cmd)
{
ObjDisp(cmd)->CmdWriteTimestamp(Unwrap(cmd), VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT,
m_QueryPool, (uint32_t)(m_Results.size() * 2 + 1));
ObjDisp(cmd)->CmdWriteTimestamp(Unwrap(cmd), VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT, m_QueryPool,
(uint32_t)(m_Results.size() * 2 + 1));
m_Results.push_back(eid);
return false;
}
@@ -101,6 +101,12 @@ struct VulkanGPUTimerCallback : public VulkanDrawcallCallback
void PreDispatch(uint32_t eid, VkCommandBuffer cmd) { PreDraw(eid, cmd); }
bool PostDispatch(uint32_t eid, VkCommandBuffer cmd) { return PostDraw(eid, cmd); }
void PostRedispatch(uint32_t eid, VkCommandBuffer cmd) { PostRedraw(eid, cmd); }
void PreMisc(uint32_t eid, DrawcallFlags flags, VkCommandBuffer cmd) { PreDraw(eid, cmd); }
bool PostMisc(uint32_t eid, DrawcallFlags flags, VkCommandBuffer cmd)
{
return PostDraw(eid, cmd);
}
void PostRemisc(uint32_t eid, DrawcallFlags flags, VkCommandBuffer cmd) { PostRedraw(eid, cmd); }
bool RecordAllCmds() { return true; }
void AliasEvent(uint32_t primary, uint32_t alias)
{