diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2006-05-08 09:03:35 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2006-05-08 09:03:35 +0000 |
commit | 71b2504e0390fa19f133647c8686d830f8f40eb6 (patch) | |
tree | 21b31e5e240f5bd83fa5b7d8a1907e4f6f6ecb3c /src/mesa/drivers/dri/r128 | |
parent | 960973b2ecfffc3b09563851e86c863e5304f48f (diff) |
updates to dri drivers for recent stencil changes
Diffstat (limited to 'src/mesa/drivers/dri/r128')
-rw-r--r-- | src/mesa/drivers/dri/r128/r128_state.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/r128/r128_state.c b/src/mesa/drivers/dri/r128/r128_state.c index e9149306d8..1b2c2a5284 100644 --- a/src/mesa/drivers/dri/r128/r128_state.c +++ b/src/mesa/drivers/dri/r128/r128_state.c @@ -260,9 +260,9 @@ r128DDStencilFuncSeparate( GLcontext *ctx, GLenum face, GLenum func, GLint ref, GLuint mask ) { r128ContextPtr rmesa = R128_CONTEXT(ctx); - GLuint refmask = ((ctx->Stencil.Ref[0] << 0) | - (ctx->Stencil.ValueMask[0] << 16) | - (ctx->Stencil.WriteMask[0] << 24)); + GLuint refmask = (((ctx->Stencil.Ref[0] & 0xff) << 0) | + ((ctx->Stencil.ValueMask[0] & 0xff) << 16) | + ((ctx->Stencil.WriteMask[0] & 0xff) << 24)); GLuint z = rmesa->setup.z_sten_cntl_c; z &= ~R128_STENCIL_TEST_MASK; @@ -307,9 +307,9 @@ static void r128DDStencilMaskSeparate( GLcontext *ctx, GLenum face, GLuint mask ) { r128ContextPtr rmesa = R128_CONTEXT(ctx); - GLuint refmask = ((ctx->Stencil.Ref[0] << 0) | - (ctx->Stencil.ValueMask[0] << 16) | - (ctx->Stencil.WriteMask[0] << 24)); + GLuint refmask = (((ctx->Stencil.Ref[0] & 0xff) << 0) | + ((ctx->Stencil.ValueMask[0] & 0xff) << 16) | + ((ctx->Stencil.WriteMask[0] & 0xff) << 24)); if ( rmesa->setup.sten_ref_mask_c != refmask ) { rmesa->setup.sten_ref_mask_c = refmask; |