From c8309cde30fe6829ed5d2eedbda2bd4dbde79418 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Sat, 15 Mar 2014 12:42:51 -0400 Subject: nv50/ir/gk110: add postfactor support for fmul Signed-off-by: Ilia Mirkin --- src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers') 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); -- cgit v1.2.3