summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_optimization.h
diff options
context:
space:
mode:
authorAbdiel Janulgue <[email protected]>2014-06-12 14:59:30 -0700
committerAbdiel Janulgue <[email protected]>2014-08-31 21:04:08 +0300
commit8935c129372c02c56005463bb8b7182e0aeefd65 (patch)
treea0c42a3af90c22a72860e8d3402d649684207beb /src/glsl/ir_optimization.h
parent4c0ccfc5b39bf69ef90145e5ccf4cea04d9a8a73 (diff)
glsl: Add a pass to lower ir_unop_saturate to clamp(x, 0, 1)
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_optimization.h')
-rw-r--r--src/glsl/ir_optimization.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir_optimization.h b/src/glsl/ir_optimization.h
index b83c2259234..1c6f72b544f 100644
--- a/src/glsl/ir_optimization.h
+++ b/src/glsl/ir_optimization.h
@@ -40,6 +40,7 @@
#define LDEXP_TO_ARITH 0x100
#define CARRY_TO_ARITH 0x200
#define BORROW_TO_ARITH 0x400
+#define SAT_TO_CLAMP 0x800
/**
* \see class lower_packing_builtins_visitor