gallium/aux: reorder vertex attributes in triangle fans according to PV
authorGert Wollny <gert.wollny@collabora.com>
Tue, 14 Jul 2020 13:28:00 +0000 (15:28 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 18 Aug 2020 12:12:27 +0000 (12:12 +0000)
commitfcc7a1e7b6d6bc149938c1203a55e1ede3517af5
treec391ad06124a87af7417580753c84468f5473499
parentf5cce8929ad61449ec0e43046a9699e19a2df0ce
gallium/aux: reorder vertex attributes in triangle fans according to PV

With triangle fans when "first vertex convention" is active the
provoking vertex is actually the second vertex so that the different
triangle can have different colors with flat shading. Take this into
account when re-ordering the vertex indices (as proposed by Erik)

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5976>
src/gallium/auxiliary/indices/u_indices_gen.py