Skip to content

Commit cc91c3e

Browse files
Gang Y Chenigcbot
authored andcommitted
Use LSC for spill when it is on slot#1
Force to use LSC for spill/fill if it is on scratch-surface#1
1 parent 1df7a35 commit cc91c3e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

IGC/Compiler/CISACodeGen/CISABuilder.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4584,7 +4584,12 @@ namespace IGC
45844584
SaveOption(vISA_LSCEnableHalfSIMD, true);
45854585
}
45864586

4587-
if (IGC_IS_FLAG_ENABLED(LscForceSpillNonStackcall)) {
4587+
if (IGC_IS_FLAG_ENABLED(LscForceSpillNonStackcall) ||
4588+
// workaround visa issue of using legacy send on slot1
4589+
(m_program->m_ScratchSpaceSize > 0 &&
4590+
m_program->m_Platform->hasScratchSurface() &&
4591+
m_program->m_DriverInfo->supportsSeparatingSpillAndPrivateScratchMemorySpace()))
4592+
{
45884593
SaveOption(vISA_lscNonStackSpill, true);
45894594
}
45904595

0 commit comments

Comments
 (0)