summaryrefslogtreecommitdiff
path: root/src/mesa/softpipe/sp_state.h
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-05-24 17:37:36 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-05-24 17:37:36 -0600
commit008fb50174fb6717f3b71836427bc6be4e44613c (patch)
tree5a10e328618f82f97eead2ca7d1fb9fffbee9a7d /src/mesa/softpipe/sp_state.h
parent2248829b99bf388dfe7ee9c6763f98167b52ba8b (diff)
Stencil state.
Diffstat (limited to 'src/mesa/softpipe/sp_state.h')
-rw-r--r--src/mesa/softpipe/sp_state.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mesa/softpipe/sp_state.h b/src/mesa/softpipe/sp_state.h
index 29bba916a1..73ed7a619c 100644
--- a/src/mesa/softpipe/sp_state.h
+++ b/src/mesa/softpipe/sp_state.h
@@ -120,6 +120,24 @@ struct softpipe_blend_color {
};
+struct softpipe_stencil_state {
+ GLuint front_enabled:1;
+ GLuint front_func:3; /**< SP_STENCIL_FUNC_x */
+ GLuint front_fail_op:3; /**< SP_STENCIL_OP_x */
+ GLuint front_zpass_op:3; /**< SP_STENCIL_OP_x */
+ GLuint front_zfail_op:3; /**< SP_STENCIL_OP_x */
+ GLuint back_enabled:1;
+ GLuint back_func:3;
+ GLuint back_fail_op:3;
+ GLuint back_zpass_op:3;
+ GLuint back_zfail_op:3;
+ GLint ref_value[2]; /**< [0] = front, [1] = back */
+ GLuint value_mask[2];
+ GLuint write_mask[2];
+ GLuint clear_value;
+};
+
+
/* This will change for hardware softpipes...
*/
struct softpipe_surface {