summaryrefslogtreecommitdiffstats
path: root/src/gallium/include
diff options
context:
space:
mode:
authorMatthew McClure <[email protected]>2013-12-10 13:10:03 -0800
committerJosé Fonseca <[email protected]>2013-12-11 18:24:21 +0000
commite84a1ab3c400f819408a7ebe01c2325cd59d94d3 (patch)
treec99b65fb562865046269d8d48433b30c25fa69dd /src/gallium/include
parent00faf82832f3e6ef886abad246b50cc47b901c1f (diff)
llvmpipe: add plumbing for ARB_depth_clamp
With this patch llvmpipe will adhere to the ARB_depth_clamp enabled state when clamping the fragment's zw value. To support this, the variant key now includes the depth_clamp state. key->depth_clamp is derived from pipe_rasterizer_state's (depth_clip == 0), thus depth clamp is only enabled when depth clip is disabled. Reviewed-by: Roland Scheidegger <[email protected]> Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/include')
-rw-r--r--src/gallium/include/pipe/p_state.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h
index 29e8cc9b05f..1b5f88e3e1d 100644
--- a/src/gallium/include/pipe/p_state.h
+++ b/src/gallium/include/pipe/p_state.h
@@ -130,6 +130,8 @@ struct pipe_rasterizer_state
/**
* When true clip space in the z axis goes from [0..1] (D3D). When false
* [-1, 1] (GL).
+ *
+ * NOTE: D3D will always use depth clamping.
*/
unsigned clip_halfz:1;