Skip to content

Commit 23828f5

Browse files
MaciejKalinskisys_zuul
authored andcommitted
1. Do not indent the content in namespaces.
2. Removed m_ShaderMode from PS codegen, as its base already has it. 3. Renamed m_ShaderMode -> m_ShaderDisdpatchMode in visa emitter. Change-Id: I83a5ffef3b4d3e2b09df9661c676231b4ae70f28
1 parent 9bb68d5 commit 23828f5

File tree

9 files changed

+5585
-5592
lines changed

9 files changed

+5585
-5592
lines changed

IGC/Compiler/CISACodeGen/EmitVISAPass.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ char EmitPass::ID = 0;
6565
EmitPass::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);

IGC/Compiler/CISACodeGen/EmitVISAPass.hpp

Lines changed: 610 additions & 610 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)