Module: Mesa
Branch: 10.4
Commit: 1a8f90dc7016fcfbfc9e93d77b7d452e77a26fa0
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1a8f90dc7016fcfbfc9e93d77b7d452e77a26fa0

Author: Ilia Mirkin <[email protected]>
Date:   Sun Nov 23 12:17:26 2014 -0500

nv50/ir: set neg modifiers on min/max args

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=86618
Signed-off-by: Ilia Mirkin <[email protected]>
Cc: "10.4 10.3" <[email protected]>
(cherry picked from commit 7d07083cfdff4bdbeca9ac36c2127cb6a26be207)

---

 src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp |    2 ++
 1 file changed, 2 insertions(+)

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 077eba8..3048f3d 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);
 }

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to