glsl: Add constant evaluation of ir_unop_saturate
authorAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Thu, 12 Jun 2014 20:53:40 +0000 (13:53 -0700)
committerAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Sun, 31 Aug 2014 18:04:08 +0000 (21:04 +0300)
commit4c0ccfc5b39bf69ef90145e5ccf4cea04d9a8a73
tree8f4b750b0a4db6398d7dfa225b84c4cdd763f341
parenta5f02b6696c3ce9ed87e017a537a37d09e288702
glsl: Add constant evaluation of ir_unop_saturate

v2: Use CLAMP macro (Ian Romanick)

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_constant_expression.cpp