Skip to content

Commit fd6c8f1

Browse files
igcbotweiyu-chen
andauthored
Make ternary instruction operand GRF-aligned (#36)
Co-authored-by: Wei Chen <[email protected]>
1 parent 9c9b890 commit fd6c8f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

visa/HWConformity.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -3479,12 +3479,12 @@ bool HWConformity::isGoodAlign1TernaryDst(G4_INST* inst) const
34793479
if (builder.noSrc2Regioning())
34803480
{
34813481
// src2 is required to have the same subreg as dst if src2 is not a scalar
3482-
// If we can't guarantee this we have to align both of them to 32 byte
3482+
// If we can't guarantee this we have to align both of them to GRF
34833483
unsigned src2Pos = inst->opcode() == G4_pseudo_mad ? 0 : 2;
34843484
auto src2 = inst->getSrc(src2Pos);
34853485
if (src2->isSrcRegRegion() && !src2->asSrcRegRegion()->isScalar())
34863486
{
3487-
alignInBytes = 32;
3487+
alignInBytes = getGRFSize();
34883488
}
34893489
}
34903490

0 commit comments

Comments
 (0)