From: Marek Olšák Date: Wed, 21 Jul 2010 07:13:53 +0000 (+0200) Subject: gallium: add depth clamp to the interface X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f47c9b088056e25a0a007b16045631df70001c8f;p=mesa.git gallium: add depth clamp to the interface --- 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; };