tu: Refactor shader compilation flow
authorConnor Abbott <cwabbott0@gmail.com>
Mon, 6 Jul 2020 16:16:39 +0000 (18:16 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 29 Sep 2020 16:16:05 +0000 (16:16 +0000)
commit41a5a2185827257820af37ee8752a839d6f2d519
tree5e518b1bcb6a783fdf958da325d148cb4e777884
parent67ac16611bd31a84e9dd6e54ea4747ab7aad717a
tu: Refactor shader compilation flow

In order to do cross-stage linking, we'll need to split out SPIR-V->NIR
and NIR finalization, so that we can do a round of linking in between.
The multiview lowering pass also assumes that it sits between two
optimization loops, which in anv are the pre-linking optimizations and
post-linking finalization.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6515>
src/freedreno/vulkan/tu_pipeline.c
src/freedreno/vulkan/tu_private.h
src/freedreno/vulkan/tu_shader.c