diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-07-21 09:13:53 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-07-21 22:54:34 +0200 |
commit | f47c9b088056e25a0a007b16045631df70001c8f (patch) | |
tree | 8f830528a15fd976d475e4699adc8cf1703e7753 /src/gallium/include/pipe | |
parent | 19e3771cff8e68fab88f06681d381ba3dad6c3ae (diff) |
gallium: add depth clamp to the interface
Diffstat (limited to 'src/gallium/include/pipe')
-rw-r--r-- | src/gallium/include/pipe/p_defines.h | 3 | ||||
-rw-r--r-- | src/gallium/include/pipe/p_state.h | 1 |
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 aa39fdec0d..00aa2076ed 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 44ffa26be7..301fe2b74f 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; }; |