Skip to content

Commit ffc20ba

Browse files
jgu222sys_zuul
authored andcommitted
When NoMask WA is needed, disable jmpi completely as
there is no way to apply WA to jmpi. So far, no issue is seen, but it could be potentially infinite looping within a shader. Change-Id: I8995a03837c92022fdd98a29bf45c27659f99340
1 parent 404a72a commit ffc20ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

IGC/Compiler/CISACodeGen/CISABuilder.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3991,11 +3991,14 @@ namespace IGC
39913991

39923992
if (IGC_IS_FLAG_ENABLED(ForceNoMaskWA)) {
39933993
SaveOption(vISA_forceNoMaskWA, true);
3994+
SaveOption(vISA_EnableScalarJmp, false);
39943995
}
39953996
if (m_program->m_Platform->getWATable().Wa_1407528679 != 0 &&
39963997
IGC_GET_FLAG_VALUE(NoMaskWA) > 0)
39973998
{
39983999
SaveOption(vISA_noMaskWA, IGC_GET_FLAG_VALUE(NoMaskWA));
4000+
// turn off jmpi as there is no wa for jmpi
4001+
SaveOption(vISA_EnableScalarJmp, false);
39994002
}
40004003

40014004
if (IGC_IS_FLAG_ENABLED(DisableCSEL))

0 commit comments

Comments
 (0)