turnip: pipeline program state refactor
authorJonathan Marek <jonathan@marek.ca>
Thu, 11 Jun 2020 00:32:17 +0000 (20:32 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 12 Jun 2020 15:09:06 +0000 (15:09 +0000)
commit13525a9c706bc3b5aef2b9bc649644f2e3607f31
treef428015b345bdc38d473eb7f19069789a6a0d96f
parent1c1782c6b555ffc9fe75306a326d907c28e6e116
turnip: pipeline program state refactor

This refactor simplifies things a bit, and will make it easier to share
some logic with tu_clear_blit (see next patches).

This changes the order in which some things are emitted, and emits less
for disabled shader stages. There's also as extra write to SP_GS_PRIM_SIZE
that is removed.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5426>
src/freedreno/vulkan/tu_pipeline.c