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:
parent
657093c14e
commit
2f90213c0f
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user