Skip to content

Commit 1c20fe5

Browse files
elvinw-inteligcbot
authored andcommitted
Purge MTP Opt. Disabling Code
Recent modifications on this existing part are problematic, this change is to wipe out old code and prepare for a clean start.
1 parent 46e4f0c commit 1c20fe5

File tree

3 files changed

+0
-18
lines changed

3 files changed

+0
-18
lines changed

IGC/Compiler/CISACodeGen/EmitVISAPass.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,20 +1388,6 @@ bool EmitPass::runOnFunction(llvm::Function& F)
13881388
}
13891389
}
13901390

1391-
if ((m_currShader->GetShaderType() == ShaderType::COMPUTE_SHADER ||
1392-
m_currShader->GetShaderType() == ShaderType::OPENCL_SHADER) &&
1393-
m_currShader->m_Platform->supportDisableMidThreadPreemptionSwitch() &&
1394-
IGC_IS_FLAG_ENABLED(EnableDisableMidThreadPreemptionOpt) &&
1395-
(m_currShader->GetContext()->m_instrTypes.numLoopInsts == 0) &&
1396-
(m_currShader->ProgramOutput()->m_InstructionCount < IGC_GET_FLAG_VALUE(MidThreadPreemptionDisableThreshold)))
1397-
{
1398-
1399-
{
1400-
COpenCLKernel* kernel = static_cast<COpenCLKernel*>(m_currShader);
1401-
kernel->SetDisableMidthreadPreemption();
1402-
}
1403-
}
1404-
14051391
if (IGC_IS_FLAG_ENABLED(ForceBestSIMD))
14061392
{
14071393
return false;

IGC/Compiler/CISACodeGen/Platform.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,6 @@ bool supportsWMTPForShaderType(ShaderType type) const {
180180
return false;
181181
}
182182

183-
bool supportDisableMidThreadPreemptionSwitch() const { return m_platformInfo.eRenderCoreFamily >= IGFX_GEN10_CORE; }
184-
185183
bool needSWStencil() const
186184
{
187185
return (m_platformInfo.eRenderCoreFamily == IGFX_GEN9_CORE && IGC_IS_FLAG_ENABLED(EnableSoftwareStencil));

IGC/common/igc_flags.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,8 +705,6 @@ DECLARE_IGC_REGKEY(bool, disableUnormTypedReadWA, false, "disable software
705705
DECLARE_IGC_REGKEY(bool, forceGlobalRA, false, "force global register allocator", false)
706706
DECLARE_IGC_REGKEY(bool, disableVarSplit, false, "disable variable splitting", false)
707707
DECLARE_IGC_REGKEY(bool, disableRemat, false, "disable re-materialization", false)
708-
DECLARE_IGC_REGKEY(bool, EnableDisableMidThreadPreemptionOpt, true, "Disable mid thread preemption", false)
709-
DECLARE_IGC_REGKEY(DWORD, MidThreadPreemptionDisableThreshold, 600, "Threshold to disable mid thread preemption", false)
710708
DECLARE_IGC_REGKEY(DWORD, DispatchGPGPUWalkerAlongYFirst, 1, "0 = No SW Y-walk, 1 = Dispatch GPGPU walker along Y first", false)
711709
DECLARE_IGC_REGKEY(DWORD, DispatchAlongY_XY_ratio, 0, "min threshold for thread group size x / y for dispatchAlongY", false)
712710
DECLARE_IGC_REGKEY(DWORD, DispatchAlongY_X_threshold, 0, "min threshold for thread group size x for dispatchAlongY", false)

0 commit comments

Comments
 (0)