freedreno/ir3: Add ir3_nir_lower_to_explicit_input() pass
authorKristian H. Kristensen <hoegsberg@google.com>
Tue, 28 Apr 2020 19:34:15 +0000 (12:34 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 1 May 2020 16:26:31 +0000 (16:26 +0000)
commit79355fd9010888fefd1ce74b88aa1d000a302754
tree30536a213cbf1b88d7a55d24d17f224dd1f675b6
parentb7bfccf08509ada02c3f5c2992f9983b7f5fc7a7
freedreno/ir3: Add ir3_nir_lower_to_explicit_input() pass

This pass lowers per-vertex input intrinsics to load_shared_ir3. This
was open coded in the TCS and GS lowering passes before - this way we
can share it. Furthermore, we'll need to run the rest of the GS
lowering earlier (before lowering IO) so we need to split off this
part that operates on the IO intrinsics first.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4562>
src/freedreno/ir3/ir3_nir.c
src/freedreno/ir3/ir3_nir.h
src/freedreno/ir3/ir3_nir_lower_tess.c