Skip to content

Commit 8a748ce

Browse files
jgu222Zuul
authored and
Zuul
committed
When VMASK is used (PS), pass this info to vISA so that
vISA can read VMASK instead of DMASK (default). Change-Id: I87fddf51fcdce81738e5520d04f9ee21f34d9443
1 parent af2c7ad commit 8a748ce

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

IGC/Compiler/CISACodeGen/CISABuilder.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -4218,6 +4218,11 @@ namespace IGC
42184218
SaveOption(vISA_EmitLocation, true);
42194219
}
42204220

4221+
if (context->type == ShaderType::PIXEL_SHADER && static_cast<CPixelShader*>(m_program)->NeedVMask())
4222+
{
4223+
SaveOption(vISA_VME, true);
4224+
}
4225+
42214226
// Enable SendFusion for SIMD8
42224227
// TODO: Re-enable SendFusion when VMask is enabled. The hardware should support this, but
42234228
// more investigation needs to be done on whether simply replacing sr0.2 with sr0.3 is enough.

visa/include/VISAOptions.def

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ DEF_VISA_OPTION(vISA_foldEOTtoPrevSend, ET_BOOL, "-foldEOT", UNUSED,
8787
DEF_VISA_OPTION(vISA_hasRNEandDenorm, ET_BOOL, "-hasRNEandDenorm", UNUSED, false)
8888
DEF_VISA_OPTION(vISA_forceNoFP64bRegioning, ET_BOOL, "-noFP64bRegion", UNUSED, false)
8989
DEF_VISA_OPTION(vISA_alignBindlessSampler, ET_BOOL, "-alignBS", UNUSED, false)
90+
DEF_VISA_OPTION(vISA_VME, ET_BOOL, "-vme", UNUSED, false)
9091

9192
//=== RA options ===
9293
DEF_VISA_OPTION(vISA_RoundRobin, ET_BOOL, "-noroundrobin", UNUSED, true)

0 commit comments

Comments
 (0)