summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nouveau
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2014-06-06 23:32:29 -0400
committerCarl Worth <cworth@cworth.org>2014-06-23 11:38:10 -0700
commit9e50fc38120735603e8a8150fb450fa8dd049f36 (patch)
treed935e58fae81735483e0da0624291f581d476684 /src/gallium/drivers/nouveau
parent8c319b3f9818e711654cf440e6f6899a99c077ad (diff)
gk110/ir: emit saturate flag on fadd when needed
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.2" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 4a3a71a183eba60539ca3c556938344bcf180d70)
Diffstat (limited to 'src/gallium/drivers/nouveau')
-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);