summaryrefslogtreecommitdiffstats
path: root/src/gallium/include
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2013-04-20 12:24:44 +0100
committerJosé Fonseca <[email protected]>2013-04-22 18:39:06 +0100
commit7c1bf8e381b914f88335686cc6561f89dcca9ae5 (patch)
tree2756bb32139586088e1e58c624e47f097373ddd5 /src/gallium/include
parent95c83824e6c3740781d1e9f7ce6a5fbe839d0457 (diff)
gallium: Add a new clip_halfz rasterizer state.
gl_rasterization_rules lumps too many different flags. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/include')
-rw-r--r--src/gallium/include/pipe/p_state.h6
1 files changed, 6 insertions, 0 deletions
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
@@ -134,6 +134,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.
* Note that if the bound shader exports any clip distances, these