summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir.cpp
diff options
context:
space:
mode:
authorAbdiel Janulgue <[email protected]>2014-06-20 11:56:48 -0700
committerAbdiel Janulgue <[email protected]>2014-08-31 21:04:08 +0300
commita5f02b6696c3ce9ed87e017a537a37d09e288702 (patch)
tree61c44d2e5e150a958dafd2f8386d3f80912a7cda /src/glsl/ir.cpp
parentf3401451070f1b38cc8ed17f486923f03eaeb828 (diff)
glsl: Add ir_unop_saturate
Signed-off-by: Abdiel Janulgue <[email protected]> Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/ir.cpp')
-rw-r--r--src/glsl/ir.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp
index b289c29756d..739a9f41257 100644
--- a/src/glsl/ir.cpp
+++ b/src/glsl/ir.cpp
@@ -255,6 +255,7 @@ ir_expression::ir_expression(int op, ir_rvalue *op0)
case ir_unop_dFdy_fine:
case ir_unop_bitfield_reverse:
case ir_unop_interpolate_at_centroid:
+ case ir_unop_saturate:
this->type = op0->type;
break;
@@ -534,6 +535,7 @@ static const char *const operator_strs[] = {
"bit_count",
"find_msb",
"find_lsb",
+ "sat",
"noise",
"interpolate_at_centroid",
"+",