nv50/ir: set neg modifiers on min/max args
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 23 Nov 2014 17:17:26 +0000 (12:17 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 23 Nov 2014 20:43:27 +0000 (15:43 -0500)
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=86618
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.4 10.3" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp

index 077eba8e3d4ebe8c825562263ee52119ffdd685a..3048f3d5f7f4597d386fc2ca909523f861f5ac69 100644 (file)
@@ -924,7 +924,9 @@ CodeEmitterNV50::emitMINMAX(const Instruction *i)
          break;
       }
       code[1] |= i->src(0).mod.abs() << 20;
+      code[1] |= i->src(0).mod.neg() << 26;
       code[1] |= i->src(1).mod.abs() << 19;
+      code[1] |= i->src(1).mod.neg() << 27;
    }
    emitForm_MAD(i);
 }