From 878c371e6cf6eb28afacc482d8aeaa0119f00d5b Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 13 Sep 2005 04:42:09 +0000 Subject: Replace ctx->Driver.StencilOp/Func/Mask() functions with ctx->Driver.Stencil*Separate() functions. --- src/mesa/drivers/dri/i830/i830_state.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/mesa/drivers/dri/i830') diff --git a/src/mesa/drivers/dri/i830/i830_state.c b/src/mesa/drivers/dri/i830/i830_state.c index 28ec9472412..13e25596629 100644 --- a/src/mesa/drivers/dri/i830/i830_state.c +++ b/src/mesa/drivers/dri/i830/i830_state.c @@ -81,8 +81,9 @@ static __inline__ GLuint i830PackColor(GLuint format, } } -static void i830StencilFunc(GLcontext *ctx, GLenum func, GLint ref, - GLuint mask) +static void +i830StencilFuncSeparate(GLcontext *ctx, GLenum face, GLenum func, GLint ref, + GLuint mask) { i830ContextPtr imesa = I830_CONTEXT(ctx); int test = 0; @@ -134,7 +135,8 @@ static void i830StencilFunc(GLcontext *ctx, GLenum func, GLint ref, STENCIL_TEST_FUNC(test)); } -static void i830StencilMask(GLcontext *ctx, GLuint mask) +static void +i830StencilMaskSeparate(GLcontext *ctx, GLenum face, GLuint mask) { i830ContextPtr imesa = I830_CONTEXT(ctx); @@ -149,8 +151,9 @@ static void i830StencilMask(GLcontext *ctx, GLuint mask) STENCIL_WRITE_MASK(mask)); } -static void i830StencilOp(GLcontext *ctx, GLenum fail, GLenum zfail, - GLenum zpass) +static void +i830StencilOpSeparate(GLcontext *ctx, GLenum face, GLenum fail, GLenum zfail, + GLenum zpass) { i830ContextPtr imesa = I830_CONTEXT(ctx); int fop, dfop, dpop; @@ -1681,9 +1684,9 @@ void i830DDInitStateFuncs(GLcontext *ctx) ctx->Driver.Viewport = i830Viewport; ctx->Driver.LightModelfv = i830LightModelfv; - ctx->Driver.StencilFunc = i830StencilFunc; - ctx->Driver.StencilMask = i830StencilMask; - ctx->Driver.StencilOp = i830StencilOp; + ctx->Driver.StencilFuncSeparate = i830StencilFuncSeparate; + ctx->Driver.StencilMaskSeparate = i830StencilMaskSeparate; + ctx->Driver.StencilOpSeparate = i830StencilOpSeparate; /* Pixel path fallbacks. */ -- cgit v1.2.3