diff options
author | José Fonseca <[email protected]> | 2011-02-11 11:20:54 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2011-02-11 11:24:55 +0000 |
commit | 57a3d36a685b4d6e39988d6c10a3201be789befc (patch) | |
tree | 9f41c0e4b9e5922f954fdf7a3cb8a1e7f681cee5 /src/gallium | |
parent | 4586e6c8cb5b391536a370faa0c419c3fd541693 (diff) |
svga: Don't use the draw pipeline for non-AA lines with a fractional width.
Spotted by Jakob Bornecrantz.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/svga/svga_pipe_rasterizer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_pipe_rasterizer.c b/src/gallium/drivers/svga/svga_pipe_rasterizer.c index d391fde7b2f..2c4292e1f38 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"; |