From: Brian Paul Date: Tue, 4 Dec 2012 23:32:01 +0000 (-0700) Subject: draw: set precalc_flat flag for AA lines too X-Git-Tag: android-x86-4.4-r1~2473 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d2c7fe5389e40871a7e339dc0ecaa7f570f851ed;p=android-x86%2Fexternal-mesa.git draw: set precalc_flat flag for AA lines too 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. Reviewed-by: Jose Fonseca --- diff --git a/src/gallium/auxiliary/draw/draw_pipe_validate.c b/src/gallium/auxiliary/draw/draw_pipe_validate.c index 27afba5af3d..4b0ed148129 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) {