gk110/ir: fix wrong emission of OP_NOT
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 18 Sep 2016 12:42:20 +0000 (14:42 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 18 Sep 2016 14:42:33 +0000 (16:42 +0200)
This should emit src0 instead of src1.
Found by inspection.

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_gk110.cpp

index 8d36799bad450019213f8a32ffed37b65c007c97..61c450bc6968c1eb293a90deac72998af2e5690f 100644 (file)
@@ -773,7 +773,7 @@ CodeEmitterGK110::emitNOT(const Instruction *i)
       break;
    case FILE_MEMORY_CONST:
       code[1] |= 0x4 << 28;
-      setCAddress14(i->src(1));
+      setCAddress14(i->src(0));
       break;
    default:
       assert(0);