glsl: Add a pass to lower ir_unop_saturate to clamp(x, 0, 1)
authorAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Thu, 12 Jun 2014 21:59:30 +0000 (14:59 -0700)
committerAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Sun, 31 Aug 2014 18:04:08 +0000 (21:04 +0300)
commit8935c129372c02c56005463bb8b7182e0aeefd65
treea0c42a3af90c22a72860e8d3402d649684207beb
parent4c0ccfc5b39bf69ef90145e5ccf4cea04d9a8a73
glsl: Add a pass to lower ir_unop_saturate to clamp(x, 0, 1)

Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ir_optimization.h
src/glsl/lower_instructions.cpp