From: Ilia Mirkin Date: Sat, 15 Mar 2014 16:42:51 +0000 (-0400) Subject: nv50/ir/gk110: add postfactor support for fmul X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c8309cde30fe6829ed5d2eedbda2bd4dbde79418;p=mesa.git nv50/ir/gk110: add postfactor support for fmul Signed-off-by: Ilia Mirkin --- diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp index 81134a21212..584ae4c587e 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp @@ -489,6 +489,8 @@ CodeEmitterGK110::emitFMUL(const Instruction *i) assert(i->postFactor == 0); } else { emitForm_21(i, 0x234, 0xc34); + code[1] |= ((i->postFactor > 0) ? + (7 - i->postFactor) : (0 - i->postFactor)) << 12; RND_(2a, F); FTZ_(2f);