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:
Alistair Popple 2020-12-07 12:42:52 +11:00 committed by Marge Bot
parent 62703b79a5
commit b02e3053ea
1 changed files with 2 additions and 1 deletions

View File

@ -862,7 +862,8 @@ CodeEmitterGV100::emitATOM()
}
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);
emitGPR (32, insn->src(1));
emitADDR (24, 40, 24, 0, insn->src(0));