swrast: use better _swrast_compute_lambda() function
authorBrian Paul <brianp@vmware.com>
Tue, 17 Mar 2009 16:28:32 +0000 (10:28 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 17 Mar 2009 16:28:32 +0000 (10:28 -0600)
commitc334ce273e946733928339b1c7f9a02ccdef1b4b
treebcd4db01fc727f99e38f2159169cf8b1bf419da6
parent1eee1bac1f6d911e6124daafc9b9291666d91cef
swrast: use better _swrast_compute_lambda() function

The MAX-based function can produce values that are non-monotonic for a span
which causes glitches in texture filtering.  The sqrt-based one avoids that.

This is perhaps slightly slower than before, but the difference
probably isn't noticable given we're doing software mipmap filtering.

Issue reported by Nir Radian <nirr@horizonsemi.com>
src/mesa/swrast/s_span.c