i965: fix line stipple fallback for GL_LINE_STRIP primitives
authorRobert Ellison <papillo@vmware.com>
Sat, 21 Feb 2009 00:04:15 +0000 (17:04 -0700)
committerRobert Ellison <papillo@vmware.com>
Mon, 23 Feb 2009 18:28:00 +0000 (11:28 -0700)
When doing line stipple, the stipple count resets on each line segment,
unless the primitive is a GL_LINE_LOOP or a GL_LINE_STRIP.

The existing code correctly identifies the need for a software fallback
to handle conformant line stipple on GL_LINE_LOOP primitives, but
neglects to make the same assessment on GL_LINE_STRIP primitives.
This fixes it so they match.

src/mesa/drivers/dri/i965/brw_draw.c

index 99fd587e9fc04a5a7f6752f4279d6daf87ef89d9..3ca953da37b5da17ba1e33d626616365b0aa279b 100644 (file)
@@ -220,7 +220,7 @@ static GLboolean check_fallbacks( struct brw_context *brw,
         /* GS doesn't get enough information to know when to reset
          * the stipple counter?!?
          */
-        if (prim[i].mode == GL_LINE_LOOP) 
+        if (prim[i].mode == GL_LINE_LOOP || prim[i].mode == GL_LINE_STRIP
            return GL_TRUE;
            
         if (prim[i].mode == GL_POLYGON &&