glsl/builtins: Compute the correct value for smoothstep(vec, vec, vec).
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 18 Dec 2010 03:25:37 +0000 (19:25 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 18 Dec 2010 03:29:22 +0000 (19:29 -0800)
commitd7423a653175352c5e2017f1de647bc7ef5ede43
treeb4a9853854664ebd1225c4987fc2c6d6280729b4
parent3f94d96fce244bbe8a9edc15758729ce0e604ae2
glsl/builtins: Compute the correct value for smoothstep(vec, vec, vec).

These mistakenly computed 't' instead of t * t * (3.0 - 2.0 * t).

Also, properly vectorize the smoothstep(float, float, vec) variants.

NOTE: This is a candidate for the 7.9 and 7.10 branches.
src/glsl/builtins/ir/smoothstep