gm107/ir: fix address offset bitfield for ATOMS
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 11 Feb 2017 23:20:50 +0000 (18:20 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 12 Feb 2017 02:06:41 +0000 (21:06 -0500)
Fixes GL45-CTS.compute_shader.atomic-case1 on Maxwell

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp

index f36838cbf8d4f39606590782f89c2f774c48f6a4..6de3f396e3ed9ef966f70a005e1627a94fde3d2f 100644 (file)
@@ -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));
 }