From b02e3053ea478e5d1f4b96d107e1a5d12233e055 Mon Sep 17 00:00:00 2001 From: Alistair Popple Date: Mon, 7 Dec 2020 12:42:52 +1100 Subject: [PATCH] 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 Reviewed-by: Ben Skeggs Part-of: --- src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gv100.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gv100.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gv100.cpp index 0758ef09331..1d60bc766ab 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gv100.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gv100.cpp @@ -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));