As we fallback for polygon stipple on the CLE266 for now, ensure we
authorAlan Hourihane <alanh@tungstengraphics.com>
Thu, 13 Jan 2005 00:15:28 +0000 (00:15 +0000)
committerAlan Hourihane <alanh@tungstengraphics.com>
Thu, 13 Jan 2005 00:15:28 +0000 (00:15 +0000)
don't turn on the polygon stipple hardware bit.

src/mesa/drivers/dri/unichrome/via_state.c

index a8278490352c7d54ae22eead08cdedef11d8641e..49782c78aa6da7d6e07e8dff42dd4c93c287ec18 100644 (file)
@@ -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) {