Skip to content

Commit 7bd5fe5

Browse files
ViacheslavRbigcbot
authored andcommitted
Fixing bfn implementation
Fixing bfn input argument if it is the result of WaveShuffleIndex intrinsic.
1 parent 4fa2608 commit 7bd5fe5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

IGC/Compiler/CISACodeGen/EmitVISAPass.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4517,6 +4517,11 @@ void EmitPass::Bfn(uint8_t booleanFuncCtrl, const SSource sources[3], const DstM
45174517
{
45184518
bool fromConstantPool = sources[i].fromConstantPool;
45194519
srcs[i] = GetSrcVariable(sources[i], fromConstantPool);
4520+
if (sources[i].region_set)
4521+
{
4522+
m_encoder->SetSrcRegion(i, sources[i].region[0], sources[i].region[1], sources[i].region[2], sources[i].instance);
4523+
m_encoder->SetSrcSubReg(i, sources[i].elementOffset);
4524+
}
45204525
}
45214526
m_encoder->SetDstModifier(modifier);
45224527
m_encoder->Bfn(booleanFuncCtrl, m_destination, srcs[0], srcs[1], srcs[2]);

0 commit comments

Comments
 (0)