1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[dxvk] Add stat counter for pipeline barriers

This commit is contained in:
Philip Rebohle 2022-02-14 01:08:55 +01:00
parent b5078a7ec0
commit 316e252a27
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
3 changed files with 5 additions and 0 deletions

View File

@ -234,6 +234,8 @@ namespace dxvk {
m_imgBarriers.size(),
m_imgBarriers.data());
commandList->addStatCtr(DxvkStatCounter::CmdBarrierCount, 1);
this->reset();
}
}

View File

@ -5184,6 +5184,8 @@ namespace dxvk {
m_cmd->cmdPipelineBarrier(
DxvkCmdBuffer::ExecBuffer, srcStages, dstStages,
flags, 1, &barrier, 0, nullptr, 0, nullptr);
m_cmd->addStatCtr(DxvkStatCounter::CmdBarrierCount, 1);
}

View File

@ -14,6 +14,7 @@ namespace dxvk {
CmdDrawCalls, ///< Number of draw calls
CmdDispatchCalls, ///< Number of compute calls
CmdRenderPassCount, ///< Number of render passes
CmdBarrierCount, ///< Number of pipeline barriers
PipeCountGraphics, ///< Number of graphics pipelines
PipeCountCompute, ///< Number of compute pipelines
PipeCompilerBusy, ///< Boolean indicating compiler activity