swrast: fix Z testing of points/lines for 16-bit depth buffers
authorBrian Paul <brianp@vmware.com>
Sat, 7 Jan 2012 21:16:27 +0000 (14:16 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 7 Jan 2012 21:16:27 +0000 (14:16 -0700)
commit282292f24c0668516db6225114461544b5d38004
tree90661ce88c7747876d98acadf654bca750ee126a
parent8dffb6bdab25dcacf165851e9d1fdb3beb73099a
swrast: fix Z testing of points/lines for 16-bit depth buffers

We were comparing 32-bit Z buffer values against 16-bit fragment values.
Need to do scaling like for the 24-bit case.

Triangle Z testing was OK since it didn't hit this code path.
src/mesa/swrast/s_depth.c