nir: Add a pass for lowering IO back to vector when possible

This pass tries to turn scalar and array-of-scalar IO variables into
vector IO variables whenever possible.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Cc: "19.0" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
Jason Ekstrand
2019-03-06 15:21:51 -06:00
committed by Jason Ekstrand
parent 0f025bbccc
commit 5ef2b8f1f2
5 changed files with 392 additions and 1 deletions

View File

@@ -133,6 +133,7 @@ files_libnir = files(
'nir_lower_io_arrays_to_elements.c',
'nir_lower_io_to_temporaries.c',
'nir_lower_io_to_scalar.c',
'nir_lower_io_to_vector.c',
'nir_lower_packing.c',
'nir_lower_passthrough_edgeflags.c',
'nir_lower_patch_vertices.c',