diff options
author | Ilia Mirkin <[email protected]> | 2014-03-15 12:42:51 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2014-03-18 05:56:55 -0400 |
commit | c8309cde30fe6829ed5d2eedbda2bd4dbde79418 (patch) | |
tree | 28a7cd0ac8c2860e9ad9c844bbe213c691856f48 /src/gallium/drivers | |
parent | d8e0d1e882e40b0da0237ef6e9b4ef21b7a3b3bf (diff) |
nv50/ir/gk110: add postfactor support for fmul
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); |