i965: handle all unfilled mode in clip stage. fix bug #12453
authorXiang, Haihao <haihao.xiang@intel.com>
Thu, 27 Sep 2007 08:14:57 +0000 (16:14 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 27 Sep 2007 08:14:57 +0000 (16:14 +0800)
src/mesa/drivers/dri/i965/brw_clip.c

index 3bec153075a3112c262d9f8ef72e463bde2db820..8287fd9edf3be7a0dde2e628bda9e229c64d0691 100644 (file)
@@ -212,6 +212,10 @@ static void upload_clip_prog( struct brw_context *brw )
            }
         }
 
+    if (brw->attribs.Polygon->BackMode != GL_FILL ||
+        brw->attribs.Polygon->FrontMode != GL_FILL)
+        key.do_unfilled = 1;
+
         /* Most cases the fixed function units will handle.  Cases where
          * one or more polygon faces are unfilled will require help:
          */