turnip: Configure VPC for geometry shaders
authorBrian Ho <brian@brkho.com>
Wed, 1 Apr 2020 18:50:55 +0000 (11:50 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 7 Apr 2020 14:13:20 +0000 (14:13 +0000)
commit012773be26aafb71ab232a5838d8e5e7dcc3dc55
tree7779e0d4d8409a094685dabe6897c4e29be7a7aa
parent6eabd6bd51406f729689cce6b3b021c2731c69f9
turnip: Configure VPC for geometry shaders

This commit updates tu6_emit_vpc to selectively emit GS-specifc
configuration. Most of this is repurposed from fd6_program.c.

This also refactors `link_geometry_stages` to ir3_nir_lower_tess.c
so it can be shared between fd and tu.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4436>
src/freedreno/ir3/ir3_nir.h
src/freedreno/ir3/ir3_nir_lower_tess.c
src/freedreno/vulkan/tu_pipeline.c
src/gallium/drivers/freedreno/ir3/ir3_gallium.c