gallium/swr: Make flat shading tris work.
authorGeorge Kyriazis <george.kyriazis@intel.com>
Wed, 13 Apr 2016 15:48:55 +0000 (10:48 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Wed, 13 Apr 2016 18:46:37 +0000 (13:46 -0500)
commitf69a61b1aa7f7fc8dd190cb3d5da1e7bca7de809
tree38baaef8f1d01c507e52b4a4036b37fdb5026d64
parentc53a12fedc519a179dd815586f432df7c7180732
gallium/swr: Make flat shading tris work.

- Incorporate flatshade flag into the shader generation
- Use provoking vertex (vc) in shader when flat shading.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/swr_shader.cpp
src/gallium/drivers/swr/swr_shader.h