From: Ilia Mirkin Date: Sun, 23 Nov 2014 17:17:26 +0000 (-0500) Subject: nv50/ir: set neg modifiers on min/max args X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d07083cfdff4bdbeca9ac36c2127cb6a26be207;p=mesa.git nv50/ir: set neg modifiers on min/max args Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=86618 Signed-off-by: Ilia Mirkin Cc: "10.4 10.3" --- diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp index 077eba8e3d4..3048f3d5f7f 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp @@ -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); }