[Mesa-dev] [PATCH] draw: set precalc_flat flag for AA lines too

Jose Fonseca jfonseca at vmware.com
Wed Dec 5 02:51:40 PST 2012


Reviewed-by: Jose Fonseca <jfonseca at vmware.com>

----- Original Message -----
> Fixes flat shading for AA lines.  demos/src/trivial/line-smooth is a
> test case which hits this.
> 
> Note: This is a candidate for the stable branches.
> ---
>  src/gallium/auxiliary/draw/draw_pipe_validate.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/src/gallium/auxiliary/draw/draw_pipe_validate.c
> b/src/gallium/auxiliary/draw/draw_pipe_validate.c
> index 27afba5..4b0ed14 100644
> --- a/src/gallium/auxiliary/draw/draw_pipe_validate.c
> +++ b/src/gallium/auxiliary/draw/draw_pipe_validate.c
> @@ -195,6 +195,7 @@ static struct draw_stage *validate_pipeline(
> struct draw_stage *stage )
>     if (rast->line_smooth && draw->pipeline.aaline) {
>        draw->pipeline.aaline->next = next;
>        next = draw->pipeline.aaline;
> +      precalc_flat = TRUE;
>     }
>  
>     if (rast->point_smooth && draw->pipeline.aapoint) {
> --
> 1.7.3.4
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
> 


More information about the mesa-dev mailing list