nir: only handle flat interpolation when needed in `nir_create_passthrough_gs`
authorantonino <antonino.maniscalco@collabora.com>
Thu, 30 Mar 2023 15:45:15 +0000 (17:45 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 31 Mar 2023 11:03:48 +0000 (11:03 +0000)
commit15b3d77b403b06da18029985ba40df7447263dd3
tree4a3e3e6e7611e4d9a995be5093c37b038856b437
parent744cdf42622bfd89ee5a8b4f044371b7d17b1f88
nir: only handle flat interpolation when needed in `nir_create_passthrough_gs`

When turning primitives into line strips this function needs to move
attributes around, but this is not needed in other cases.

Fixes: 1a5bdca2dda ("zink: implement flat shading using inlined uniforms")
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22162>
src/compiler/nir/nir_passthrough_gs.c