From 7c1bf8e381b914f88335686cc6561f89dcca9ae5 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Sat, 20 Apr 2013 12:24:44 +0100 Subject: gallium: Add a new clip_halfz rasterizer state. gl_rasterization_rules lumps too many different flags. Reviewed-by: Brian Paul --- src/gallium/include/pipe/p_state.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gallium/include/pipe/p_state.h') diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index dfafd0bb99f..5da3a533e85 100644 --- a/src/gallium/include/pipe/p_state.h +++ b/src/gallium/include/pipe/p_state.h @@ -133,6 +133,12 @@ struct pipe_rasterizer_state */ unsigned depth_clip:1; + /** + * When true clip space in the z axis goes from [0..1] (D3D). When false + * [-1, 1] (GL). + */ + unsigned clip_halfz:1; + /** * Enable bits for clipping half-spaces. * This applies to both user clip planes and shader clip distances. -- cgit v1.2.3