v3d: Refactor flat shade/centroid flag emission.
authorEric Anholt <eric@anholt.net>
Fri, 6 Jul 2018 22:41:56 +0000 (15:41 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 9 Jul 2018 18:48:32 +0000 (11:48 -0700)
commit4b4795be9de7a73ebc89916753d18a2d0f2ef7a3
treeffdb09f0a2094f425580207def91ed11f2490ca1
parent93f437d12897ca7949a40b9a3128140d0adf3b8d
v3d: Refactor flat shade/centroid flag emission.

The logic was duplicated in a pretty gross way, when what we really need
is just a helper function for stuffing the values in the packet.  This
will make implementing noperspective easier.
src/gallium/drivers/v3d/v3dx_emit.c