File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1333,13 +1333,12 @@ bool EmitPass::runOnFunction(llvm::Function& F)
1333
1333
}
1334
1334
}
1335
1335
1336
- bool enableMTPOpt =
1336
+ if ((m_currShader->GetShaderType() == ShaderType::COMPUTE_SHADER ||
1337
+ m_currShader->GetShaderType() == ShaderType::OPENCL_SHADER) &&
1337
1338
m_currShader->m_Platform->supportDisableMidThreadPreemptionSwitch() &&
1338
- (m_currShader->GetShaderType() == ShaderType::COMPUTE_SHADER || m_currShader->GetShaderType() == ShaderType::OPENCL_SHADER) &&
1339
- m_currShader->GetContext()->m_instrTypes.numLoopInsts == 0;
1340
-
1341
- if (enableMTPOpt && IGC_IS_FLAG_ENABLED(EnableDisableMidThreadPreemptionOpt) &&
1342
- m_currShader->ProgramOutput()->m_InstructionCount < IGC_GET_FLAG_VALUE(MidThreadPreemptionDisableThreshold))
1339
+ IGC_IS_FLAG_ENABLED(EnableDisableMidThreadPreemptionOpt) &&
1340
+ (m_currShader->GetContext()->m_instrTypes.numLoopInsts == 0) &&
1341
+ (m_currShader->ProgramOutput()->m_InstructionCount < IGC_GET_FLAG_VALUE(MidThreadPreemptionDisableThreshold)))
1343
1342
{
1344
1343
1345
1344
{
You can’t perform that action at this time.
0 commit comments