From 008fb50174fb6717f3b71836427bc6be4e44613c Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 24 May 2007 17:37:36 -0600 Subject: Stencil state. --- src/mesa/softpipe/sp_state.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/mesa/softpipe/sp_state.h') 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 { -- cgit v1.2.3