[dxbc] Fix hull shader barrier issue

This commit is contained in:
Philip Rebohle 2018-03-07 00:22:40 +01:00
parent b7a9c2c751
commit 0fdde6a94e
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 6 additions and 3 deletions

View File

@ -5341,7 +5341,7 @@ namespace dxvk {
// Fork/join phases. We cannot run this in parallel
// because synchronizing per-patch outputs does not
// work. We don't need to synchronize after this.
// this->emitHsInvocationBlockBegin(1);
this->emitHsInvocationBlockBegin(1);
for (const auto& phase : m_hs.forkPhases)
this->emitHsForkJoinPhase(phase);
@ -5349,10 +5349,13 @@ namespace dxvk {
for (const auto& phase : m_hs.joinPhases)
this->emitHsForkJoinPhase(phase);
// Output setup phase
this->emitHsInvocationBlockEnd();
this->emitHsPhaseBarrier();
// Output setup phase
this->emitHsInvocationBlockBegin(1);
this->emitOutputSetup();
// this->emitHsInvocationBlockEnd();
this->emitHsInvocationBlockEnd();
this->emitMainFunctionEnd();
}