primconvert: select pv convention only from flatshade_first

This should match to how drivers program hardware. flatshade relates to
whether color inputs are interpolated, not the provoking vertex
convention.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
Ilia Mirkin 2015-04-07 11:43:52 -04:00
parent 0904774af1
commit 1cdb01d716
1 changed files with 1 additions and 2 deletions

View File

@ -104,8 +104,7 @@ util_primconvert_save_rasterizer_state(struct primconvert_context *pc,
* we would actually need to save/restore rasterizer state. As
* it is, we just need to make note of the pv.
*/
pc->api_pv = (rast->flatshade
&& !rast->flatshade_first) ? PV_LAST : PV_FIRST;
pc->api_pv = rast->flatshade_first ? PV_FIRST : PV_LAST;
}
void