aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2017-06-15 11:29:38 -0600
committerBrian Paul <[email protected]>2017-06-15 13:53:00 -0600
commitc8f344ed2d471f0e012205aecfae4aa765d9fffb (patch)
treed893bf365abb0cd1fb1693c28b791b6a93cc26c2 /src/gallium
parentc2b92dada076afc303e31e3d029256d234254c27 (diff)
draw: check for line_width != 1.0f in validate_pipeline()
We shouldn't use the wide line stage if the line width is 1. This check isn't strictly needed because all drivers are (now) specifying a line wide threshold of at least 1.0 pixels, but let's play it safe. Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/draw/draw_pipe_validate.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe_validate.c b/src/gallium/auxiliary/draw/draw_pipe_validate.c
index 01d07593d5c..846cd4db39e 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_validate.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_validate.c
@@ -156,9 +156,10 @@ static struct draw_stage *validate_pipeline( struct draw_stage *stage )
*/
stage->next = next;
- /* drawing wide lines? */
- wide_lines = (roundf(rast->line_width) > draw->pipeline.wide_line_threshold
- && !rast->line_smooth);
+ /* drawing wide, non-AA lines? */
+ wide_lines = rast->line_width != 1.0f &&
+ roundf(rast->line_width) > draw->pipeline.wide_line_threshold &&
+ !rast->line_smooth;
/* drawing large/sprite points (but not AA points)? */
if (rast->sprite_coord_enable && draw->pipeline.point_sprite)