From: José Fonseca Date: Fri, 11 Feb 2011 11:20:54 +0000 (+0000) Subject: svga: Don't use the draw pipeline for non-AA lines with a fractional width. X-Git-Tag: 062012170305~7283 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=57a3d36a685b4d6e39988d6c10a3201be789befc;p=profile%2Fivi%2Fmesa.git svga: Don't use the draw pipeline for non-AA lines with a fractional width. Spotted by Jakob Bornecrantz. --- diff --git a/src/gallium/drivers/svga/svga_pipe_rasterizer.c b/src/gallium/drivers/svga/svga_pipe_rasterizer.c index d391fde..2c4292e 100644 --- a/src/gallium/drivers/svga/svga_pipe_rasterizer.c +++ b/src/gallium/drivers/svga/svga_pipe_rasterizer.c @@ -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";