summaryrefslogtreecommitdiff
path: root/src/mesa/softpipe/sp_defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/softpipe/sp_defines.h')
-rw-r--r--src/mesa/softpipe/sp_defines.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mesa/softpipe/sp_defines.h b/src/mesa/softpipe/sp_defines.h
index f47d782285..bc88e3d71e 100644
--- a/src/mesa/softpipe/sp_defines.h
+++ b/src/mesa/softpipe/sp_defines.h
@@ -71,4 +71,22 @@
#define SP_LOGICOP_OR 14
#define SP_LOGICOP_SET 15
+#define SP_STENCIL_FUNC_NEVER 0
+#define SP_STENCIL_FUNC_LESS 1
+#define SP_STENCIL_FUNC_EQUAL 2
+#define SP_STENCIL_FUNC_LEQUAL 3
+#define SP_STENCIL_FUNC_GREATER 4
+#define SP_STENCIL_FUNC_NOTEQUAL 5
+#define SP_STENCIL_FUNC_GEQUAL 6
+#define SP_STENCIL_FUNC_ALWAYS 7
+
+#define SP_STENCIL_OP_KEEP 0
+#define SP_STENCIL_OP_ZERO 1
+#define SP_STENCIL_OP_REPLACE 2
+#define SP_STENCIL_OP_INCR 3
+#define SP_STENCIL_OP_DECR 4
+#define SP_STENCIL_OP_INCR_WRAP 5
+#define SP_STENCIL_OP_DECR_WRAP 6
+#define SP_STENCIL_OP_INVERT 7
+
#endif