aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-07-21 09:13:53 +0200
committerMarek Olšák <[email protected]>2010-07-21 22:54:34 +0200
commitf47c9b088056e25a0a007b16045631df70001c8f (patch)
tree8f830528a15fd976d475e4699adc8cf1703e7753 /src
parent19e3771cff8e68fab88f06681d381ba3dad6c3ae (diff)
gallium: add depth clamp to the interface
Diffstat (limited to 'src')
-rw-r--r--src/gallium/include/pipe/p_defines.h3
-rw-r--r--src/gallium/include/pipe/p_state.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index aa39fdec0d7..00aa2076ed5 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -491,7 +491,8 @@ enum pipe_cap {
PIPE_CAP_MAX_VS_ADDRS,
PIPE_CAP_MAX_VS_PREDS,
- PIPE_CAP_GEOMETRY_SHADER4
+ PIPE_CAP_GEOMETRY_SHADER4,
+ PIPE_CAP_DEPTH_CLAMP
};
diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h
index 44ffa26be74..301fe2b74f0 100644
--- a/src/gallium/include/pipe/p_state.h
+++ b/src/gallium/include/pipe/p_state.h
@@ -155,6 +155,7 @@ struct pipe_clip_state
{
float ucp[PIPE_MAX_CLIP_PLANES][4];
unsigned nr;
+ unsigned depth_clamp:1;
};