Skip to content

Commit aea157f

Browse files
jgu222sys_zuul
authored andcommitted
WA table has been populated with the new WA, use this new WA to
control nomask WA. Change-Id: I5268473844dde387fc3dd4b27a538c5fbb2569bc
1 parent 4514aec commit aea157f

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

IGC/Compiler/CISACodeGen/CISABuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3993,7 +3993,7 @@ namespace IGC
39933993
SaveOption(vISA_forceNoMaskWA, true);
39943994
SaveOption(vISA_EnableScalarJmp, false);
39953995
}
3996-
if (m_program->m_Platform->getWATable().Wa_1407528679 != 0 &&
3996+
if (m_program->m_Platform->getWATable().Wa_1808850743 != 0 &&
39973997
IGC_GET_FLAG_VALUE(NoMaskWA) > 0)
39983998
{
39993999
SaveOption(vISA_noMaskWA, IGC_GET_FLAG_VALUE(NoMaskWA));

inc/common/sku_wa.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8455,6 +8455,12 @@ typedef struct _WA_TABLE
84558455
"Workaround",
84568456
WA_BUG_TYPE_UNKNOWN,
84578457
WA_BUG_PERF_IMPACT_UNKNOWN, WA_COMPONENT_UNKNOWN)
8458+
8459+
WA_DECLARE(
8460+
Wa_1808850743,
8461+
"Workaround",
8462+
WA_BUG_TYPE_UNKNOWN,
8463+
WA_BUG_PERF_IMPACT_UNKNOWN, WA_COMPONENT_UNKNOWN)
84588464
} WA_TABLE, *PWA_TABLE;
84598465

84608466
#ifdef _USC_

visa/Optimizer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6695,8 +6695,8 @@ bool Optimizer::foldPseudoAndOr(G4_BB* bb, INST_LIST_ITER& ii)
66956695
// 1 - "emask flag" is created using cmp instructions.
66966696
//
66976697
if (builder.kernel.getOptions()->getTarget() != VISA_CM &&
6698-
(builder.getuint32Option(vISA_noMaskWA) & 0x3) > 0 &&
6699-
(getGenxPlatform() == GENX_TGLLP || builder.getOption(vISA_forceNoMaskWA)))
6698+
((builder.getuint32Option(vISA_noMaskWA) & 0x3) > 0 ||
6699+
builder.getOption(vISA_forceNoMaskWA)))
67006700
{
67016701
replaceNoMaskWithAnyhWA();
67026702
}

0 commit comments

Comments
 (0)