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