Skip to content

Commit 5a4387d

Browse files
davidjwoosys_zuul
authored andcommitted
Fix SWSB info for shaders using MRS.
Change-Id: Ide4fbf2b0d560e18af8758b041631ee75703bc15
1 parent 5751336 commit 5a4387d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

IGC/Compiler/CISACodeGen/CISABuilder.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4273,7 +4273,9 @@ namespace IGC
42734273
SaveOption(vISA_EnableIGASWSB, true);
42744274
}
42754275

4276-
if (IGC_IS_FLAG_ENABLED(EnableSWSBStitch))
4276+
if (IGC_IS_FLAG_ENABLED(EnableSWSBStitch) ||
4277+
(context->type == ShaderType::PIXEL_SHADER &&
4278+
static_cast<CPixelShader*>(m_program)->GetPhase() == PSPHASE_PIXEL))
42774279
{
42784280
SaveOption(vISA_SWSBStitch, true);
42794281
}

0 commit comments

Comments
 (0)