svga: Enable the draw pipeline for smooth lines.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 11 Feb 2011 11:22:02 +0000 (11:22 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 11 Feb 2011 11:24:55 +0000 (11:24 +0000)
Spotted by Brian Paul.

src/gallium/drivers/svga/svga_pipe_rasterizer.c

index 2c4292e1f38a4b42db60e42150183e6301f8c750..f2c1a3c578df8c4275ddff22f635c3eacd1fe9bb 100644 (file)
@@ -127,6 +127,11 @@ svga_create_rasterizer_state(struct pipe_context *pipe,
       rast->need_pipeline_points_str = "smooth points";
    }
 
+   if (templ->line_smooth) {
+      rast->need_pipeline |= SVGA_PIPELINE_FLAG_LINES;
+      rast->need_pipeline_lines_str = "smooth lines";
+   }
+
    {
       int fill_front = templ->fill_front;
       int fill_back = templ->fill_back;