Skip to content

Commit 8e150f6

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: I7c4fdf2f89d06e78f7d709e17a19deb19f043d13
1 parent ec0ca0c commit 8e150f6

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
@@ -3971,11 +3971,14 @@ namespace IGC
39713971

39723972
if (IGC_IS_FLAG_ENABLED(ForceNoMaskWA)) {
39733973
SaveOption(vISA_forceNoMaskWA, true);
3974+
SaveOption(vISA_EnableScalarJmp, false);
39743975
}
39753976
if (m_program->m_Platform->getWATable().Wa_1407528679 != 0 &&
39763977
IGC_GET_FLAG_VALUE(NoMaskWA) > 0)
39773978
{
39783979
SaveOption(vISA_noMaskWA, IGC_GET_FLAG_VALUE(NoMaskWA));
3980+
// turn off jmpi as there is no wa for jmpi
3981+
SaveOption(vISA_EnableScalarJmp, false);
39793982
}
39803983

39813984
if (IGC_IS_FLAG_ENABLED(DisableCSEL))

0 commit comments

Comments
 (0)