From: Christoph Bumiller Date: Thu, 14 Jun 2012 21:24:36 +0000 (+0200) Subject: nv50/ir: handle NEG,ABS modifiers for short RCP encoding X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef51ce522bbb0a9bb3e6faa4890049b21f533aed;p=mesa.git nv50/ir: handle NEG,ABS modifiers for short RCP encoding --- diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_emit_nv50.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_emit_nv50.cpp index 7542b84d17a..3ea89aefd2a 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_emit_nv50.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_emit_nv50.cpp @@ -1239,6 +1239,8 @@ CodeEmitterNV50::emitSFnOp(const Instruction *i, uint8_t subOp) if (i->encSize == 4) { assert(i->op == OP_RCP); + code[0] |= i->src(0).mod.abs() << 15; + code[0] |= i->src(0).mod.neg() << 22; emitForm_MUL(i); } else { code[1] = subOp << 29;