gv100/ir: Make emitATOM consistent with emitRED
GV100 code generation uses ATOM instructions for compare-and-swap and RED instructions for other atomic operations. Make the scope consistent for both types of operations. Signed-off-by: Alistair Popple <apopple@nvidia.com> Reviewed-by: Ben Skeggs <bskeggs@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7955>
This commit is contained in:
parent
62703b79a5
commit
b02e3053ea
|
@ -862,7 +862,8 @@ CodeEmitterGV100::emitATOM()
|
||||||
}
|
}
|
||||||
|
|
||||||
emitPRED (81);
|
emitPRED (81);
|
||||||
emitField(79, 2, 1);
|
emitField(79, 2, 2); // .INVALID0/./.STRONG/.INVALID3
|
||||||
|
emitField(77, 2, 2); // .CTA/.SM/.GPU/.SYS
|
||||||
emitField(72, 1, insn->src(0).getIndirect(0)->getSize() == 8);
|
emitField(72, 1, insn->src(0).getIndirect(0)->getSize() == 8);
|
||||||
emitGPR (32, insn->src(1));
|
emitGPR (32, insn->src(1));
|
||||||
emitADDR (24, 40, 24, 0, insn->src(0));
|
emitADDR (24, 40, 24, 0, insn->src(0));
|
||||||
|
|
Loading…
Reference in New Issue