gallium: add depth clamp to the interface
authorMarek Olšák <maraeo@gmail.com>
Wed, 21 Jul 2010 07:13:53 +0000 (09:13 +0200)
committerMarek Olšák <maraeo@gmail.com>
Wed, 21 Jul 2010 20:54:34 +0000 (22:54 +0200)
src/gallium/include/pipe/p_defines.h
src/gallium/include/pipe/p_state.h

index aa39fde..00aa207 100644 (file)
@@ -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
 };
 
 
index 44ffa26..301fe2b 100644 (file)
@@ -155,6 +155,7 @@ struct pipe_clip_state
 {
    float ucp[PIPE_MAX_CLIP_PLANES][4];
    unsigned nr;
+   unsigned depth_clamp:1;
 };