Skip to content

Commit 95f5963

Browse files
bcheng0127igcbot
authored andcommitted
Fix the bug on the src0 length with CMASK for RenderTargetDataPayload
The CMASK control to Alpha channel is not src 0 Alpha Present
1 parent d1258d4 commit 95f5963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

visa/VisaToG4/TranslateSend3D.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1635,7 +1635,7 @@ IR_Builder::constructSrcPayloadRenderTarget(vISA_RT_CONTROLS cntrls,
16351635
uint32_t chMask = (R && !R->isNullReg() ? 0x1 : 0) |
16361636
((G && !G->isNullReg() ? 0x1 : 0) << 0x1) |
16371637
((B && !B->isNullReg() ? 0x1 : 0) << 0x2) |
1638-
(((A && !A->isNullReg() || cntrls.s0aPresent) ? 0x1 : 0) << 0x3);
1638+
((A && !A->isNullReg() ? 0x1 : 0) << 0x3);
16391639

16401640

16411641
return std::make_tuple(srcToUse, numRows, chMask);

0 commit comments

Comments
 (0)