svga: Don't use the draw pipeline for non-AA lines with a fractional width.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 11 Feb 2011 11:20:54 +0000 (11:20 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 11 Feb 2011 11:24:55 +0000 (11:24 +0000)
Spotted by Jakob Bornecrantz.

src/gallium/drivers/svga/svga_pipe_rasterizer.c

index d391fde..2c4292e 100644 (file)
@@ -100,8 +100,7 @@ svga_create_rasterizer_state(struct pipe_context *pipe,
       rast->need_pipeline_tris_str = "poly stipple";
    }
 
-   if (templ->line_width != 1.0 &&
-       templ->line_width != 0.0 &&
+   if (templ->line_width >= 1.5f &&
        !svga->debug.no_line_width) {
       rast->need_pipeline |= SVGA_PIPELINE_FLAG_LINES;
       rast->need_pipeline_lines_str = "line width";