Skip to content

Commit 3bbca97

Browse files
lstalmirigcbot
authored andcommitted
[Autobackout][FuncReg]Revert of change: 87469fe
Refactor dual-SIMD8 pixel shader support check. Refactor dual-SIMD8 pixel shader support check.
1 parent a9b55ac commit 3bbca97

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

IGC/Compiler/CISACodeGen/ShaderCodeGen.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,9 +1178,6 @@ static void PSCodeGen(
11781178
bool earlyExit =
11791179
ctx->getCompilerOption().pixelShaderDoNotAbortOnSpill ? false : true;
11801180

1181-
bool enableDualSIMD8 =
1182-
ctx->platform.supportDualSimd8PS();
1183-
11841181
// for versioned loop, in general SIMD16 with spill has better perf
11851182
bool earlyExit16 = psInfo.hasVersionedLoop ? false : earlyExit;
11861183
bool enableHigherSimd = false;
@@ -1212,7 +1209,7 @@ static void PSCodeGen(
12121209
// don't retry SIMD16 for ForcePSBestSIMD
12131210
if (enableHigherSimd || IGC_GET_FLAG_VALUE(SkipTREarlyExitCheck))
12141211
{
1215-
if (enableDualSIMD8)
1212+
if (ctx->platform.supportDualSimd8PS())
12161213
{
12171214
AddCodeGenPasses(*ctx, shaders, PassMgr, SIMDMode::SIMD16, true, ShaderDispatchMode::DUAL_SIMD8, pSignature);
12181215
}
@@ -1265,7 +1262,7 @@ static void PSCodeGen(
12651262

12661263
if (!useRegKeySimd)
12671264
{
1268-
if (enableDualSIMD8)
1265+
if (ctx->platform.supportDualSimd8PS())
12691266
{
12701267
// the condition for dualsimd8 should be the same as SIMD16, since they are very similar
12711268
if (enableHigherSimd || IGC_GET_FLAG_VALUE(SkipTREarlyExitCheck)) {

0 commit comments

Comments
 (0)