From: Ilia Mirkin Date: Sat, 11 Feb 2017 23:20:50 +0000 (-0500) Subject: gm107/ir: fix address offset bitfield for ATOMS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e75f0913ab545be14feb233d1ed74dc48116fb8;p=mesa.git gm107/ir: fix address offset bitfield for ATOMS Fixes GL45-CTS.compute_shader.atomic-case1 on Maxwell Signed-off-by: Ilia Mirkin Cc: mesa-stable@lists.freedesktop.org --- diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp index f36838cbf8d..6de3f396e3e 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp @@ -2538,7 +2538,7 @@ CodeEmitterGM107::emitATOMS() emitField(0x34, 4, subOp); emitGPR (0x14, insn->src(1)); - emitADDR (0x08, 0x12, 22, 0, insn->src(0)); + emitADDR (0x08, 0x1e, 22, 2, insn->src(0)); emitGPR (0x00, insn->def(0)); }