From: Brian Paul Date: Mon, 20 Sep 2010 19:48:29 +0000 (-0600) Subject: draw: fix test for using the wide-point stage X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7ea4d11fb5a2a39daaad8752706291ac93013f7;p=mesa.git draw: fix test for using the wide-point stage As it was, we weren't obeying the draw->pipeline.point_sprite state. Fixes point sprites in llvmpipe driver. --- diff --git a/src/gallium/auxiliary/draw/draw_pipe_validate.c b/src/gallium/auxiliary/draw/draw_pipe_validate.c index 8b925439876..c575a8ac7ca 100644 --- a/src/gallium/auxiliary/draw/draw_pipe_validate.c +++ b/src/gallium/auxiliary/draw/draw_pipe_validate.c @@ -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; }