draw: set precalc_flat flag for AA lines too
authorBrian Paul <brianp@vmware.com>
Tue, 4 Dec 2012 23:32:01 +0000 (16:32 -0700)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Wed, 13 Feb 2013 17:38:42 +0000 (18:38 +0100)
commit9ae069dbbd6814fc86ad371e439b7750b938408a
tree4908932dfdb69e0fb43008becfdb6e6a56c1914c
parent4a0423e1bd2ba287f7c0599d1a9b80d9206f14cb
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 <jfonseca@vmware.com>
(cherry picked from commit d2c7fe5389e40871a7e339dc0ecaa7f570f851ed)
src/gallium/auxiliary/draw/draw_pipe_validate.c