Skip to contentSkip to conversation

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

PATCH New Ilia Mirkin 1 participant 1 message Nov 23, 2014

lore
Share & tools
lore
#0 lore raw

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

---
 src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp | 2 ++
 1 file changed, 2 insertions(+)
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp +2 -0
index 077eba8..3048f3d 100644
@@ -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);
 }
Signature · 6 lines
2.0.4

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau