gm107/ir: add missing NEG modifier for IADD32I
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 19 Jul 2016 12:47:56 +0000 (14:47 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 19 Jul 2016 16:07:10 +0000 (18:07 +0200)
Like FADD32I, the NEG modifier of src0 is at position 56.

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

index f1ba27a1927fa0e669e7eb205939d8c99ba72c21..5ae189873ad365ede9ee935e341d1578374a93fd 100644 (file)
@@ -1707,6 +1707,7 @@ CodeEmitterGM107::emitIADD()
       emitX  (0x2b);
    } else {
       emitInsn(0x1c000000);
+      emitNEG (0x38, insn->src(0));
       emitSAT (0x36);
       emitX   (0x35);
       emitCC  (0x34);