mesa: Mostly fix swrast's ARB_depth_clamp support.
authorEric Anholt <eric@anholt.net>
Wed, 28 Oct 2009 23:35:16 +0000 (16:35 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 29 Oct 2009 17:01:17 +0000 (10:01 -0700)
commit32ec3f26731ac998b6fda7ce596ec568d6f76eeb
tree9e19761b9b67db1bbdebdf44f075d672bf7f4686
parent6eb6a0e9cbed6ba5543d54e277f7ac11a0612070
mesa: Mostly fix swrast's ARB_depth_clamp support.

I'd written a testcase for the hard part of the extension enablement, so
naturally the easy stuff was completely broken.  There are still issues,
as I'm seeing FLOAT_TO_UINT(max_f) == 0x0 when max_f == 1.0, but it gets
piglit depth-clamp-range closer to success.
src/mesa/swrast/s_depth.c
src/mesa/swrast/s_span.c