From b286b518c526d81e4cf5efaf6b79011749533ef7 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 29 Mar 2018 14:05:38 +0200 Subject: [PATCH] [dxbc] Fix ForkInstanceId type in EmitHsForkJoinPhase --- src/dxbc/dxbc_compiler.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dxbc/dxbc_compiler.cpp b/src/dxbc/dxbc_compiler.cpp index e5523e779..ef328e2fb 100644 --- a/src/dxbc/dxbc_compiler.cpp +++ b/src/dxbc/dxbc_compiler.cpp @@ -5674,10 +5674,14 @@ namespace dxvk { const DxbcCompilerHsForkJoinPhase& phase) { this->emitHsInvocationBlockBegin(phase.instanceCount); + uint32_t invocationId = m_module.opLoad( + getScalarTypeId(DxbcScalarType::Uint32), + m_hs.builtinInvocationId); + m_module.opFunctionCall( m_module.defVoidType(), phase.functionId, 1, - &m_hs.builtinInvocationId); + &invocationId); this->emitHsInvocationBlockEnd(); this->emitHsPhaseBarrier();