diff options
author | Felix Kuehling <fxkuehl@gmx.de> | 2004-03-02 23:45:40 +0000 |
---|---|---|
committer | Felix Kuehling <fxkuehl@gmx.de> | 2004-03-02 23:45:40 +0000 |
commit | 2517a0ef217f2f66494c55fc5342362d49ee208d (patch) | |
tree | 1c362ee7a60e387ab8c5957ade4a37877fcff75f | |
parent | af745e5d4d6077fe46bd5692408475890848d66c (diff) |
Fixed some small state tracking issues while hunting a different problem.
-rw-r--r-- | src/mesa/drivers/dri/savage/savagestate.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/savage/savagestate.c b/src/mesa/drivers/dri/savage/savagestate.c index e38aa85c65..8c9669a4ad 100644 --- a/src/mesa/drivers/dri/savage/savagestate.c +++ b/src/mesa/drivers/dri/savage/savagestate.c @@ -262,6 +262,8 @@ static void savageBlendFunc_s4(GLcontext *ctx) imesa->regs.s4.drawCtrl1.ni.alphaTestEn; /*imesa->regs.s4.drawLocalCtrl.ni.zUpdateEn = ~drawLocalCtrl.ni.wrZafterAlphaTst;*/ + + imesa->dirty |= SAVAGE_UPLOAD_CTX; } static void savageBlendFunc_s3d(GLcontext *ctx) { @@ -426,6 +428,8 @@ static void savageBlendFunc_s3d(GLcontext *ctx) imesa->regs.s3d.zBufCtrl.ni.wrZafterAlphaTst = imesa->regs.s3d.drawCtrl.ni.alphaTestEn; + + imesa->dirty |= SAVAGE_UPLOAD_CTX; } static void savageDDBlendFuncSeparate_s4( GLcontext *ctx, GLenum sfactorRGB, @@ -1217,14 +1221,13 @@ static void savageDDEnable_s4(GLcontext *ctx, GLenum cap, GLboolean state) break; case GL_CULL_FACE: #if HW_CULL - imesa->dirty |= SAVAGE_UPLOAD_CTX; if (state) { savageDDCullFaceFrontFace(ctx,0); } else { - imesa->regs.s4.drawCtrl1.ni.cullMode=BCM_None; + imesa->LcsCullMode = BCM_None; } #endif break; @@ -1295,14 +1298,13 @@ static void savageDDEnable_s3d(GLcontext *ctx, GLenum cap, GLboolean state) break; case GL_CULL_FACE: #if HW_CULL - imesa->dirty |= SAVAGE_UPLOAD_CTX; if (state) { savageDDCullFaceFrontFace(ctx,0); } else { - imesa->regs.s3d.drawCtrl.ni.cullMode=BCM_None; + imesa->LcsCullMode = BCM_None; } #endif break; |