draw: fix test for using the wide-point stage
authorBrian Paul <brianp@vmware.com>
Mon, 20 Sep 2010 19:48:29 +0000 (13:48 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 20 Sep 2010 20:07:41 +0000 (14:07 -0600)
As it was, we weren't obeying the draw->pipeline.point_sprite state.
Fixes point sprites in llvmpipe driver.

src/gallium/auxiliary/draw/draw_pipe_validate.c

index 8b92543987675efbde9f5dfc9bf4e5800d66d8b7..c575a8ac7caff68d5ffd3086adf3b218c61c5ee4 100644 (file)
@@ -172,7 +172,7 @@ static struct draw_stage *validate_pipeline( struct draw_stage *stage )
    wide_lines = (rast->line_width > draw->pipeline.wide_line_threshold
                  && !rast->line_smooth);
 
-   /* drawing large points? */
+   /* drawing large/sprite points (but not AA points)? */
    if (rast->sprite_coord_enable && draw->pipeline.point_sprite)
       wide_points = TRUE;
    else if (rast->point_smooth && draw->pipeline.aapoint)
@@ -207,7 +207,7 @@ static struct draw_stage *validate_pipeline( struct draw_stage *stage )
       precalc_flat = TRUE;
    }
 
-   if (wide_points || rast->sprite_coord_enable) {
+   if (wide_points) {
       draw->pipeline.wide_point->next = next;
       next = draw->pipeline.wide_point;
    }