Skip to content

Commit

Permalink
Purge MTP Opt. Disabling Code
Browse files Browse the repository at this point in the history
Recent modifications on this existing part are problematic, this change is to wipe out old code and prepare for a clean start.
  • Loading branch information
elvinw-intel authored and igcbot committed Jul 16, 2024
1 parent 46e4f0c commit 1c20fe5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
14 changes: 0 additions & 14 deletions IGC/Compiler/CISACodeGen/EmitVISAPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1388,20 +1388,6 @@ bool EmitPass::runOnFunction(llvm::Function& F)
}
}

if ((m_currShader->GetShaderType() == ShaderType::COMPUTE_SHADER ||
m_currShader->GetShaderType() == ShaderType::OPENCL_SHADER) &&
m_currShader->m_Platform->supportDisableMidThreadPreemptionSwitch() &&
IGC_IS_FLAG_ENABLED(EnableDisableMidThreadPreemptionOpt) &&
(m_currShader->GetContext()->m_instrTypes.numLoopInsts == 0) &&
(m_currShader->ProgramOutput()->m_InstructionCount < IGC_GET_FLAG_VALUE(MidThreadPreemptionDisableThreshold)))
{

{
COpenCLKernel* kernel = static_cast<COpenCLKernel*>(m_currShader);
kernel->SetDisableMidthreadPreemption();
}
}

if (IGC_IS_FLAG_ENABLED(ForceBestSIMD))
{
return false;
Expand Down
2 changes: 0 additions & 2 deletions IGC/Compiler/CISACodeGen/Platform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@ bool supportsWMTPForShaderType(ShaderType type) const {
return false;
}

bool supportDisableMidThreadPreemptionSwitch() const { return m_platformInfo.eRenderCoreFamily >= IGFX_GEN10_CORE; }

bool needSWStencil() const
{
return (m_platformInfo.eRenderCoreFamily == IGFX_GEN9_CORE && IGC_IS_FLAG_ENABLED(EnableSoftwareStencil));
Expand Down
2 changes: 0 additions & 2 deletions IGC/common/igc_flags.h
Original file line number Diff line number Diff line change
Expand Up @@ -705,8 +705,6 @@ DECLARE_IGC_REGKEY(bool, disableUnormTypedReadWA, false, "disable software
DECLARE_IGC_REGKEY(bool, forceGlobalRA, false, "force global register allocator", false)
DECLARE_IGC_REGKEY(bool, disableVarSplit, false, "disable variable splitting", false)
DECLARE_IGC_REGKEY(bool, disableRemat, false, "disable re-materialization", false)
DECLARE_IGC_REGKEY(bool, EnableDisableMidThreadPreemptionOpt, true, "Disable mid thread preemption", false)
DECLARE_IGC_REGKEY(DWORD, MidThreadPreemptionDisableThreshold, 600, "Threshold to disable mid thread preemption", false)
DECLARE_IGC_REGKEY(DWORD, DispatchGPGPUWalkerAlongYFirst, 1, "0 = No SW Y-walk, 1 = Dispatch GPGPU walker along Y first", false)
DECLARE_IGC_REGKEY(DWORD, DispatchAlongY_XY_ratio, 0, "min threshold for thread group size x / y for dispatchAlongY", false)
DECLARE_IGC_REGKEY(DWORD, DispatchAlongY_X_threshold, 0, "min threshold for thread group size x for dispatchAlongY", false)
Expand Down

0 comments on commit 1c20fe5

Please sign in to comment.