We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30c4ba4 commit 9fa575dCopy full SHA for 9fa575d
IGC/Compiler/CISACodeGen/EmitVISAPass.cpp
@@ -19840,10 +19840,9 @@ void EmitPass::emitLSCVectorStore(Value *Ptr,
19840
{
19841
rawAddrVar = eOffset;
19842
}
19843
- // no need for discard predicate if we are writing to scratch - this is our
19844
- // internal memory, shader output remain the same, but we avoid problems
19845
- // when, for example, texture coordinates are spilled
19846
- if (resource.m_surfaceType != ESURFACE_SCRATCH)
+ // no need for discard predicate if we are writing to internal memory surfaces
+ // those include scratch or raytracing-related allocations
+ if (resource.m_surfaceType != ESURFACE_SCRATCH && !dontForceDmask)
19847
19848
setPredicateForDiscard(flag);
19849
0 commit comments