Commit 97a2fb1c authored by kchen's avatar kchen Committed by gbsbuild

Internal feature

Change-Id: If2ca5df99d45e2c6ca1f2288340adfca0f02ee47
parent b64eb84c
......@@ -3827,12 +3827,11 @@ bool HWConformity::generateAlign1Mad(G4_BB* bb, INST_LIST_ITER iter)
//swap src0 and src1 as src0 supports imm
inst->setSrc(src1, 0);
inst->setSrc(src0, 1);
} else if (builder.noSrc2Regioning() &&
src0->isSrcRegRegion() && src1->isSrcRegRegion() &&
!src0->asSrcRegRegion()->isScalar() &&
} else if (!isGoodAlign1TernarySrc(inst, 0, true) &&
src1->isSrcRegRegion() &&
src1->asSrcRegRegion()->isScalar()) {
// Swap src0 and src1 if src1 is scalar but src0 is not when src2
// regioning support is quite limited.
// Swap src0 and src1 if src1 is scalar but src0 is not a good Align1TernarySrc
// when src2 regioning support is quite limited.
inst->setSrc(src1, 0);
inst->setSrc(src0, 1);
}
......
......@@ -4268,6 +4268,7 @@ int IR_Builder::translateVISADwordAtomicInst(
startTimer(TIMER_VISA_BUILDER_IR_CONSTRUCTION);
#endif
surface = lowerSurface255To253(surface, *this);
unsigned op = Get_Atomic_Op(atomicOp);
......@@ -4529,6 +4530,7 @@ int IR_Builder::translateVISADwordAtomicInst(VISAAtomicOps atomicOp,
ASSERT_USER(!IsFloatAtomicOps(atomicOp) || hasFloatAtomics(),
"Float atomic operations are only supported on SKL+ devices!");
surface = lowerSurface255To253(surface, *this);
Common_ISA_Exec_Size instExecSize = execSize;
......@@ -10396,6 +10398,7 @@ int IR_Builder::translateVISASVMAtomicInst(
startTimer(TIMER_VISA_BUILDER_IR_CONSTRUCTION);
#endif
Common_ISA_Exec_Size instExecSize = execSize;
if (execSize == EXEC_SIZE_1 || execSize == EXEC_SIZE_2 || execSize == EXEC_SIZE_4)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment