diff options
author | Dave Airlie <[email protected]> | 2014-06-10 10:56:51 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2014-06-11 12:20:07 +1000 |
commit | 5a57248541b45c81081b2d7bd30dc0097f126ad6 (patch) | |
tree | 0a25c0b0bf8d9cf27fc4f9bfbbfb69213a2d6aad /src/gallium/drivers/softpipe/sp_screen.c | |
parent | a4670de0a00fad11a2b2a5c458a89302b552df64 (diff) |
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 <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_screen.c')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c index 34dbb91d746..78517775ecd 100644 --- a/src/gallium/drivers/softpipe/sp_screen.c +++ b/src/gallium/drivers/softpipe/sp_screen.c @@ -111,7 +111,7 @@ softpipe_get_param(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_TGSI_FS_COORD_PIXEL_CENTER_INTEGER: return 1; case PIPE_CAP_DEPTH_CLIP_DISABLE: - return 0; + return 1; case PIPE_CAP_MAX_STREAM_OUTPUT_BUFFERS: return PIPE_MAX_SO_BUFFERS; case PIPE_CAP_MAX_STREAM_OUTPUT_SEPARATE_COMPONENTS: |