summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2014-06-06 23:32:29 -0400
committerIlia Mirkin <[email protected]>2014-06-06 23:32:29 -0400
commit4a3a71a183eba60539ca3c556938344bcf180d70 (patch)
treeaa0dca96894e17612a70be59282970e1e3ecf7d9
parent9fef8b3d811000146b989a101ad0e26ae6530fe4 (diff)
gk110/ir: emit saturate flag on fadd when needed
Signed-off-by: Ilia Mirkin <[email protected]> Cc: "10.2" <[email protected]>
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp1
1 files changed, 1 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 6788750dd73..caf42c1f78b 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
@@ -555,6 +555,7 @@ CodeEmitterGK110::emitFADD(const Instruction *i)
RND_(2a, F);
ABS_(31, 0);
NEG_(33, 0);
+ SAT_(35);
if (code[0] & 0x1) {
modNegAbsF32_3b(i, 1);