Skip to content

Commit cf6b7b9

Browse files
iwwusys_zuul
authored andcommitted
Rename enableSimd32 variable to reflect the usage
Change-Id: I622928702d80bc19391f7519dd97d75e67f53d83
1 parent a0bbba5 commit cf6b7b9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

IGC/Compiler/CISACodeGen/ShaderCodeGen.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -799,21 +799,21 @@ static void PSCodeGen(
799799

800800
// for versioned loop, in general SIMD16 with spill has better perf
801801
bool earlyExit16 = psInfo.hasVersionedLoop ? false : earlyExit;
802-
bool enableSimd32 = false;
802+
bool enableHigherSimd = false;
803803

804804
if (psInfo.ForceEnableSimd32) // UMD forced compilation of simd32.
805805
{
806-
enableSimd32 = true;
806+
enableHigherSimd = true;
807807
}
808808
// heuristic based on performance measures.
809809
else if (SimdEarlyCheck(ctx))
810810
{
811-
enableSimd32 = true;
811+
enableHigherSimd = true;
812812
}
813813

814814
if (IGC_IS_FLAG_ENABLED(ForceBestSIMD))
815815
{
816-
if (enableSimd32)
816+
if (enableHigherSimd)
817817
{
818818
AddCodeGenPasses(*ctx, shaders, PassMgr, SIMDMode::SIMD16, true, ShaderDispatchMode::NOT_APPLICABLE, pSignature);
819819
}
@@ -823,7 +823,7 @@ static void PSCodeGen(
823823
else if (IsStage1BestPerf(ctx->m_CgFlag, ctx->m_StagingCtx))
824824
{
825825
// don't retry SIMD16 for ForcePSBestSIMD
826-
if (enableSimd32 || IGC_GET_FLAG_VALUE(SkipTREarlyExitCheck))
826+
if (enableHigherSimd || IGC_GET_FLAG_VALUE(SkipTREarlyExitCheck))
827827
{
828828
AddCodeGenPasses(*ctx, shaders, PassMgr, SIMDMode::SIMD16, earlyExit16, ShaderDispatchMode::NOT_APPLICABLE, pSignature);
829829
}
@@ -865,7 +865,7 @@ static void PSCodeGen(
865865
{
866866
AddCodeGenPasses(*ctx, shaders, PassMgr, SIMDMode::SIMD8, !ctx->m_retryManager.IsLastTry(), ShaderDispatchMode::NOT_APPLICABLE, pSignature);
867867

868-
if (enableSimd32 || IGC_GET_FLAG_VALUE(SkipTREarlyExitCheck))
868+
if (enableHigherSimd || IGC_GET_FLAG_VALUE(SkipTREarlyExitCheck))
869869
{
870870
AddCodeGenPasses(*ctx, shaders, PassMgr, SIMDMode::SIMD16, earlyExit16, ShaderDispatchMode::NOT_APPLICABLE, pSignature);
871871
AddCodeGenPasses(*ctx, shaders, PassMgr, SIMDMode::SIMD32, earlyExit, ShaderDispatchMode::NOT_APPLICABLE, pSignature);

0 commit comments

Comments
 (0)