From: Alan Hourihane Date: Thu, 13 Jan 2005 00:15:28 +0000 (+0000) Subject: As we fallback for polygon stipple on the CLE266 for now, ensure we X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3ff4eca05c67b2969386db36ee8123fc8a5e55ac;p=mesa.git As we fallback for polygon stipple on the CLE266 for now, ensure we don't turn on the polygon stipple hardware bit. --- 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) {