Skip to content

Commit 7fdbe0b

Browse files
fftzengigcbot
authored andcommitted
Add UMD control to disable higher Simds
1 parent 3d198aa commit 7fdbe0b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

IGC/Compiler/CISACodeGen/PixelShaderCodeGen.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,6 +1245,12 @@ bool CPixelShader::CompileSIMDSize(SIMDMode simdMode, EmitPass& EP, llvm::Functi
12451245
return false;
12461246
}
12471247

1248+
if (ctx->PsHighSimdDisable)
1249+
{
1250+
if (simdMode == SIMDMode::SIMD32)
1251+
return false;
1252+
}
1253+
12481254
if (m_HasoStencil && !ctx->platform.supportsStencil(simdMode))
12491255
{
12501256
ctx->SetSIMDInfo(SIMD_SKIP_HW, simdMode, EP.m_ShaderDispatchMode);

IGC/Compiler/CodeGenPublic.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,7 @@ namespace IGC
882882
SInstrTypes m_savedInstrTypes;
883883

884884
bool m_hasVendorExtension = false;
885+
bool PsHighSimdDisable = false;
885886

886887
std::vector<int> m_hsIdxMap;
887888
std::vector<int> m_dsIdxMap;

0 commit comments

Comments
 (0)