fix up radeon span functions using latest r200 code from Brian,
[mesa.git] / src / mesa / drivers / dri / s3v / s3v_state.c
index f92859d4edcf71f201ead6719dde634e22385c7b..e692f20e8a93182dfb6919f0105b3d119ced2cde 100644 (file)
@@ -117,8 +117,8 @@ static void s3vDDClear( GLcontext *ctx, GLbitfield mask, GLboolean all,
                DMAOUT(vmesa->DestXY);
        DMAFINISH();
 
-       if (mask & DD_DEPTH_BIT) { /* depth */
-               DEBUG(("DD_DEPTH_BIT\n"));
+       if (mask & BUFFER_BIT_DEPTH) { /* depth */
+               DEBUG(("BUFFER_BIT_DEPTH\n"));
                
                _stride = ((cw+31)&~31) * 2;
 
@@ -142,7 +142,7 @@ static void s3vDDClear( GLcontext *ctx, GLbitfield mask, GLboolean all,
                DMAFINISH();            
 
                DEBUG(("vmesa->ClearDepth = 0x%x\n", vmesa->ClearDepth));
-               mask &= ~DD_DEPTH_BIT;
+               mask &= ~BUFFER_BIT_DEPTH;
        }
 
        if (!vmesa->NotClipped) {
@@ -880,9 +880,5 @@ void s3vInitStateFuncs( GLcontext *ctx )
    ctx->Driver.PolygonStipple          = NULL; /* s3vDDPolygonStipple; */
    ctx->Driver.Scissor                 = s3vDDScissor; /* ScissorLR / ScissorTB */
    ctx->Driver.ShadeModel              = NULL; /* s3vDDShadeModel; */
-   ctx->Driver.ClearStencil            = NULL;
-   ctx->Driver.StencilFunc             = NULL;
-   ctx->Driver.StencilMask             = NULL;
-   ctx->Driver.StencilOp               = NULL;
    ctx->Driver.Viewport                        = NULL; /* s3vDDViewport; */
 }