@@ -65,7 +65,7 @@ char EmitPass::ID = 0;
65
65
EmitPass::EmitPass(CShaderProgram::KernelShaderMap& shaders, SIMDMode mode, bool canAbortOnSpill, ShaderDispatchMode shaderMode, PSSignature* pSignature)
66
66
: FunctionPass(ID),
67
67
m_SimdMode(mode),
68
- m_ShaderMode (shaderMode),
68
+ m_ShaderDispatchMode (shaderMode),
69
69
m_shaders(shaders),
70
70
m_currShader(nullptr),
71
71
m_encoder(nullptr),
@@ -273,7 +273,7 @@ bool EmitPass::setCurrentShader(llvm::Function* F)
273
273
{
274
274
return false;
275
275
}
276
- m_currShader = Iter->second->GetOrCreateShader(m_SimdMode, m_ShaderMode );
276
+ m_currShader = Iter->second->GetOrCreateShader(m_SimdMode, m_ShaderDispatchMode );
277
277
m_encoder = &(m_currShader->GetEncoder());
278
278
return true;
279
279
}
@@ -434,7 +434,7 @@ bool EmitPass::runOnFunction(llvm::Function& F)
434
434
bool hasStackCall = m_FGA && m_FGA->getGroup(&F)->hasStackCall();
435
435
if (!m_FGA || m_FGA->isGroupHead(&F))
436
436
{
437
- m_currShader->InitEncoder(m_SimdMode, m_canAbortOnSpill, m_ShaderMode );
437
+ m_currShader->InitEncoder(m_SimdMode, m_canAbortOnSpill, m_ShaderDispatchMode );
438
438
// Pre-analysis pass to be executed before call to visa builder so we can pass scratch space offset
439
439
m_currShader->PreAnalysisPass();
440
440
if (!m_currShader->CompileSIMDSize(m_SimdMode, *this, F))
@@ -744,7 +744,7 @@ bool EmitPass::runOnFunction(llvm::Function& F)
744
744
}
745
745
746
746
if (m_SimdMode == SIMDMode::SIMD16 &&
747
- this->m_ShaderMode == ShaderDispatchMode::NOT_APPLICABLE &&
747
+ this->m_ShaderDispatchMode == ShaderDispatchMode::NOT_APPLICABLE &&
748
748
IsStage1BestPerf(m_pCtx->m_CgFlag, m_pCtx->m_StagingCtx))
749
749
{
750
750
m_pCtx->m_doSimd32Stage2 = m_currShader->CompileSIMDSize(SIMDMode::SIMD32, *this, F);
0 commit comments