swr: [rasterizer core] allow an OpenGL driver to specify halfz clipping
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 9 Nov 2016 06:18:05 +0000 (01:18 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 10 Nov 2016 01:10:52 +0000 (20:10 -0500)
commit4b5b87e7abf86b9b75a50d912a486042a770829e
treeb008052a95fc4baf6d8b8703c33710ae44b5aa46
parent4af25e713113e5a50c0e03685ce7de20d3828961
swr: [rasterizer core] allow an OpenGL driver to specify halfz clipping

With ARB_clip_control, GL may also do 0..1 depth clipping, not just
-1..1. This removes clip's reliance on driver type. DX users will need
to be updated to set the new clipHalfZ flag to get proper clipping
functionality.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/rasterizer/core/clip.h
src/gallium/drivers/swr/rasterizer/core/state.h