draw: fix flat shading and screen-space linear interpolation in clipper
authorOlivier Galibert <galibert@pobox.com>
Tue, 19 Jun 2012 18:51:19 +0000 (20:51 +0200)
committerBrian Paul <brianp@vmware.com>
Tue, 19 Jun 2012 20:40:44 +0000 (14:40 -0600)
commit4625a9b1adf7a30c56e2bbeb41573fbba4465851
tree8cd525253000a4f8a8328ce6b54a22a805ae31b5
parentcfc5b3094163bc5c945594903d90f21873bb5d66
draw: fix flat shading and screen-space linear interpolation in clipper

This includes:
- picking up correctly which attributes are flatshaded and which are
  noperspective

- copying the flatshaded attributes when needed, including the
  non-built-in ones

- correctly interpolating the noperspective attributes in screen-space
  instead than in a 3d-correct fashion.

Signed-off-by: Olivier Galibert <galibert@pobox.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/draw/draw_pipe_clip.c