[Mesa-dev] Mesa (master): glsl/builtins: Compute the correct value for smoothstep(vec, vec, vec).

Ian Romanick idr at freedesktop.org
Mon Jan 3 17:08:54 PST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/17/2010 07:41 PM, Kenneth Graunke wrote:
> Module: Mesa
> Branch: master
> Commit: d7423a653175352c5e2017f1de647bc7ef5ede43
> URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d7423a653175352c5e2017f1de647bc7ef5ede43
> 
> Author: Kenneth Graunke <kenneth at whitecape.org>
> Date:   Fri Dec 17 19:25:37 2010 -0800
> 
> 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.

Is there a test case for this?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0icyIACgkQX1gOwKyEAw/X6gCdE3o6ZgF3UvfqjGOPHeEoD8b/
xxAAnAl9oRcKP+7BbguBHtjZy8ZRbwd4
=ieuQ
-----END PGP SIGNATURE-----


More information about the mesa-dev mailing list