mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
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 <charmainel@vmware.com>
(cherry picked from commit c8f344ed2d)
This commit is contained in:
parent
5a24aa8c55
commit
b17bd63229
1 changed files with 4 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue