turnip: Configure VFD_CONTROL with gsheader and primitiveid
authorBrian Ho <brian@brkho.com>
Wed, 1 Apr 2020 20:21:26 +0000 (13:21 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 7 Apr 2020 14:13:20 +0000 (14:13 +0000)
commitfceccc411ac6351f4c30876c349cb56fb62820b9
treea20d0ed2c6f195fb1c64536d9266280b80f2d1ff
parent012773be26aafb71ab232a5838d8e5e7dcc3dc55
turnip: Configure VFD_CONTROL with gsheader and primitiveid

This commit updates VFD_CONTROL to use the GS header and primitive
ID sysvals if a geometry shader stage is present in the pipeline.
Like in the case of VPC, the code here is adapted from fd6_program.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4436>
src/freedreno/vulkan/tu_pipeline.c