swrast: improve depth texture mipmap selection
authorBrian Paul <brianp@vmware.com>
Tue, 23 Mar 2010 23:55:41 +0000 (17:55 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 23 Mar 2010 23:55:43 +0000 (17:55 -0600)
commit2b5de09b3ea8754fb004d4f216bca29303f99490
tree677402b55f79bae9beb5145c71f5a7aa3286c33b
parent8ba47561dd45e1cd737992544545d7fa0f61918b
swrast: improve depth texture mipmap selection

We still don't do proper min/mag filtering but this is better than just
sampling the base mipmap level all the time.

Fixes piglit depth-level-clamp test.  Fixes fd.o bug 27256.
src/mesa/swrast/s_texfilter.c