softpipe: add depth clamping support. (v2)
authorDave Airlie <airlied@redhat.com>
Tue, 10 Jun 2014 00:56:51 +0000 (10:56 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 11 Jun 2014 02:20:07 +0000 (12:20 +1000)
commit5a57248541b45c81081b2d7bd30dc0097f126ad6
tree0a25c0b0bf8d9cf27fc4f9bfbbfb69213a2d6aad
parenta4670de0a00fad11a2b2a5c458a89302b552df64
softpipe: add depth clamping support. (v2)

This passes the piglit depth clamp tests.

this is required for GL 3.2.

v2: move min/max up one level, could go further, thanks
to Roland for suggestion.

v1: Reviewed-by: Brian Paul <brianp@vmware.com>

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/softpipe/sp_quad_depth_test.c
src/gallium/drivers/softpipe/sp_screen.c