gv100/ir: fix atom cas
Signed-off-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Ben Skeggs <bskeggs@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5576>
This commit is contained in:
@@ -858,6 +858,7 @@ CodeEmitterGV100::emitATOM()
|
||||
break;
|
||||
}
|
||||
emitField(73, 3, dType);
|
||||
emitGPR (64, insn->src(2));
|
||||
}
|
||||
|
||||
emitPRED (81);
|
||||
|
||||
@@ -1727,7 +1727,8 @@ NVC0LoweringPass::handleCasExch(Instruction *cas, bool needCctl)
|
||||
cctl->setPredicate(cas->cc, cas->getPredicate());
|
||||
}
|
||||
|
||||
if (cas->subOp == NV50_IR_SUBOP_ATOM_CAS) {
|
||||
if (cas->subOp == NV50_IR_SUBOP_ATOM_CAS &&
|
||||
targ->getChipset() < NVISA_GV100_CHIPSET) {
|
||||
// CAS is crazy. It's 2nd source is a double reg, and the 3rd source
|
||||
// should be set to the high part of the double reg or bad things will
|
||||
// happen elsewhere in the universe.
|
||||
|
||||
Reference in New Issue
Block a user