diff options
author | Abdiel Janulgue <[email protected]> | 2014-06-19 22:17:20 -0700 |
---|---|---|
committer | Abdiel Janulgue <[email protected]> | 2014-08-31 21:04:08 +0300 |
commit | d92394c5d88c77f7ff9676b6ade935f922e377a4 (patch) | |
tree | ff462002c5d04a365c19a0693fbed8fb1d946fc5 /src/glsl/ir_clone.cpp | |
parent | 8f890b119eaff88a7fad64abbf183cbcc22edc7a (diff) |
glsl: Optimize clamp(x, 0.0, b), where b < 1.0 as min(saturate(x),b)
v2: - Output min(saturate(x),b) instead of saturate(min(x,b)) suggested by Ilia Mirkin
- Make sure we do component-wise comparison for vectors (Ian Romanick)
v3: - Add missing condition where the outer constant value is zero and
inner constant is < 1
- Fix comments to reflect we are doing a commutative operation (Matt Turner)
Reviewed-by: Ian Romanick <[email protected]>
Signed-off-by: Abdiel Janulgue <[email protected]>
Diffstat (limited to 'src/glsl/ir_clone.cpp')
0 files changed, 0 insertions, 0 deletions