summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/p_defines.h
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-06-18 17:53:09 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-06-18 17:53:09 -0600
commitefe6c50089e945902917c8091c92ce3a6155caac (patch)
tree49eb390f89432bf37355aa49a740c0fa26b976f4 /src/mesa/pipe/p_defines.h
parent9ec2e162235920e6430914b73ff6f391a73b6a3a (diff)
Define just one set of PIPE_FUNC_LESS, GREATER, EQUAL, etc tokens.
Used for depth test, alpha test, stencil test, shadow test, etc.
Diffstat (limited to 'src/mesa/pipe/p_defines.h')
-rw-r--r--src/mesa/pipe/p_defines.h30
1 files changed, 12 insertions, 18 deletions
diff --git a/src/mesa/pipe/p_defines.h b/src/mesa/pipe/p_defines.h
index 1ca717e7ec..11b70175b0 100644
--- a/src/mesa/pipe/p_defines.h
+++ b/src/mesa/pipe/p_defines.h
@@ -71,14 +71,18 @@
#define PIPE_LOGICOP_OR 14
#define PIPE_LOGICOP_SET 15
-#define PIPE_STENCIL_FUNC_NEVER 0
-#define PIPE_STENCIL_FUNC_LESS 1
-#define PIPE_STENCIL_FUNC_EQUAL 2
-#define PIPE_STENCIL_FUNC_LEQUAL 3
-#define PIPE_STENCIL_FUNC_GREATER 4
-#define PIPE_STENCIL_FUNC_NOTEQUAL 5
-#define PIPE_STENCIL_FUNC_GEQUAL 6
-#define PIPE_STENCIL_FUNC_ALWAYS 7
+/**
+ * Inequality functions. Used for depth test, stencil compare, alpha
+ * test, shadow compare, etc.
+ */
+#define PIPE_FUNC_NEVER 0
+#define PIPE_FUNC_LESS 1
+#define PIPE_FUNC_EQUAL 2
+#define PIPE_FUNC_LEQUAL 3
+#define PIPE_FUNC_GREATER 4
+#define PIPE_FUNC_NOTEQUAL 5
+#define PIPE_FUNC_GEQUAL 6
+#define PIPE_FUNC_ALWAYS 7
#define PIPE_STENCIL_OP_KEEP 0
#define PIPE_STENCIL_OP_ZERO 1
@@ -89,16 +93,6 @@
#define PIPE_STENCIL_OP_DECR_WRAP 6
#define PIPE_STENCIL_OP_INVERT 7
-/* Note: same as stencil funcs. Also used for shadow/depth compare */
-#define PIPE_DEPTH_FUNC_NEVER 0
-#define PIPE_DEPTH_FUNC_LESS 1
-#define PIPE_DEPTH_FUNC_EQUAL 2
-#define PIPE_DEPTH_FUNC_LEQUAL 3
-#define PIPE_DEPTH_FUNC_GREATER 4
-#define PIPE_DEPTH_FUNC_NOTEQUAL 5
-#define PIPE_DEPTH_FUNC_GEQUAL 6
-#define PIPE_DEPTH_FUNC_ALWAYS 7
-
#define PIPE_TEX_WRAP_REPEAT 0
#define PIPE_TEX_WRAP_CLAMP 1
#define PIPE_TEX_WRAP_CLAMP_TO_EDGE 2