Skip to content

Commit 51caaff

Browse files
bcheng0127gfxbot
authored andcommitted
Internal feature
Change-Id: If729052437242cca0ff023016b5bca19f99004ec
1 parent c21c1fc commit 51caaff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

visa/Gen4_IR.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7669,7 +7669,8 @@ bool G4_INST::canSrcBeAcc(int srcId) const
76697669
return false;
76707670
}
76717671

7672-
if (opcode() == G4_mad && srcId == 0)
7672+
if (opcode() == G4_mad && srcId == 0 &&
7673+
!builder.canMadHaveSrc0Acc())
76737674
{
76747675
// mac's implicit acc gets its region from dst, so we have to check src and
76757676
// dst have the same type

0 commit comments

Comments
 (0)