From 2517a0ef217f2f66494c55fc5342362d49ee208d Mon Sep 17 00:00:00 2001 From: Felix Kuehling Date: Tue, 2 Mar 2004 23:45:40 +0000 Subject: [PATCH] Fixed some small state tracking issues while hunting a different problem. --- src/mesa/drivers/dri/savage/savagestate.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/savage/savagestate.c b/src/mesa/drivers/dri/savage/savagestate.c index e38aa85c655..8c9669a4adf 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; -- 2.30.2