1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-13 19:29:14 +01:00

[dxvk] Enable pipeline statistics queries around compute shaders

Fixes potential issues caused by csInvocations being 0.
This commit is contained in:
Philip Rebohle 2018-08-31 16:24:03 +02:00
parent 657093c14e
commit 2f90213c0f
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -871,8 +871,14 @@ namespace dxvk {
if (this->validateComputeState()) {
this->commitComputeInitBarriers();
m_queries.beginQueries(m_cmd,
VK_QUERY_TYPE_PIPELINE_STATISTICS);
m_cmd->cmdDispatch(x, y, z);
m_queries.endQueries(m_cmd,
VK_QUERY_TYPE_PIPELINE_STATISTICS);
this->commitComputePostBarriers();
}
@ -892,10 +898,16 @@ namespace dxvk {
if (this->validateComputeState()) {
this->commitComputeInitBarriers();
m_queries.beginQueries(m_cmd,
VK_QUERY_TYPE_PIPELINE_STATISTICS);
m_cmd->cmdDispatchIndirect(
physicalSlice.handle(),
physicalSlice.offset());
m_queries.endQueries(m_cmd,
VK_QUERY_TYPE_PIPELINE_STATISTICS);
this->commitComputePostBarriers();
}