@@ -65,7 +65,7 @@ char EmitPass::ID = 0;
6565EmitPass::EmitPass(CShaderProgram::KernelShaderMap& shaders, SIMDMode mode, bool canAbortOnSpill, ShaderDispatchMode shaderMode, PSSignature* pSignature)
6666 : FunctionPass(ID),
6767 m_SimdMode(mode),
68- m_ShaderMode (shaderMode),
68+ m_ShaderDispatchMode (shaderMode),
6969 m_shaders(shaders),
7070 m_currShader(nullptr),
7171 m_encoder(nullptr),
@@ -273,7 +273,7 @@ bool EmitPass::setCurrentShader(llvm::Function* F)
273273 {
274274 return false;
275275 }
276- m_currShader = Iter->second->GetOrCreateShader(m_SimdMode, m_ShaderMode );
276+ m_currShader = Iter->second->GetOrCreateShader(m_SimdMode, m_ShaderDispatchMode );
277277 m_encoder = &(m_currShader->GetEncoder());
278278 return true;
279279}
@@ -434,7 +434,7 @@ bool EmitPass::runOnFunction(llvm::Function& F)
434434 bool hasStackCall = m_FGA && m_FGA->getGroup(&F)->hasStackCall();
435435 if (!m_FGA || m_FGA->isGroupHead(&F))
436436 {
437- m_currShader->InitEncoder(m_SimdMode, m_canAbortOnSpill, m_ShaderMode );
437+ m_currShader->InitEncoder(m_SimdMode, m_canAbortOnSpill, m_ShaderDispatchMode );
438438 // Pre-analysis pass to be executed before call to visa builder so we can pass scratch space offset
439439 m_currShader->PreAnalysisPass();
440440 if (!m_currShader->CompileSIMDSize(m_SimdMode, *this, F))
@@ -744,7 +744,7 @@ bool EmitPass::runOnFunction(llvm::Function& F)
744744 }
745745
746746 if (m_SimdMode == SIMDMode::SIMD16 &&
747- this->m_ShaderMode == ShaderDispatchMode::NOT_APPLICABLE &&
747+ this->m_ShaderDispatchMode == ShaderDispatchMode::NOT_APPLICABLE &&
748748 IsStage1BestPerf(m_pCtx->m_CgFlag, m_pCtx->m_StagingCtx))
749749 {
750750 m_pCtx->m_doSimd32Stage2 = m_currShader->CompileSIMDSize(SIMDMode::SIMD32, *this, F);
0 commit comments