From 3ff4eca05c67b2969386db36ee8123fc8a5e55ac Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Thu, 13 Jan 2005 00:15:28 +0000 Subject: [PATCH] As we fallback for polygon stipple on the CLE266 for now, ensure we don't turn on the polygon stipple hardware bit. --- src/mesa/drivers/dri/unichrome/via_state.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/unichrome/via_state.c b/src/mesa/drivers/dri/unichrome/via_state.c index a8278490352..49782c78aa6 100644 --- a/src/mesa/drivers/dri/unichrome/via_state.c +++ b/src/mesa/drivers/dri/unichrome/via_state.c @@ -1432,11 +1432,13 @@ static void viaChoosePolygonState(GLcontext *ctx) } } - if (ctx->Polygon.StippleFlag) { - vmesa->regEnable |= HC_HenSP_MASK; - } - else { - vmesa->regEnable &= ~HC_HenSP_MASK; + if (vmesa->viaScreen->deviceID != VIA_CLE266) { + if (ctx->Polygon.StippleFlag) { + vmesa->regEnable |= HC_HenSP_MASK; + } + else { + vmesa->regEnable &= ~HC_HenSP_MASK; + } } if (ctx->Polygon.CullFlag) { -- 2.30.2