Mesa (master): gallium: add depth clamp to the interface
Marek Olšák
mareko at kemper.freedesktop.org
Wed Jul 21 20:54:55 UTC 2010
Module: Mesa
Branch: master
Commit: f47c9b088056e25a0a007b16045631df70001c8f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f47c9b088056e25a0a007b16045631df70001c8f
Author: Marek Olšák <maraeo at gmail.com>
Date: Wed Jul 21 09:13:53 2010 +0200
gallium: add depth clamp to the interface
---
src/gallium/include/pipe/p_defines.h | 3 ++-
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 aa39fde..00aa207 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 44ffa26..301fe2b 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;
};
More information about the mesa-commit
mailing list