nir: Add a pass to cut the trailing ends of vectors

Graphics / Mesa 3D Graphics Library / Mesa - Eric Anholt [anholt.net] - 3 August 2020 21:26 UTC

Ideally we'd also handle unused middles of vectors and reswizzle ALU-only uses of it so we could write fewer channels, but that's future work/

1c9906d5ff2 nir: Add a pass to cut the trailing ends of vectors.
src/compiler/Makefile.sources | 1 +
src/compiler/nir/meson.build | 1 +
src/compiler/nir/nir.h | 1 +
src/compiler/nir/nir_opt_shrink_vectors.c | 210 ++++++++++++++++++++++++++++++
4 files changed, 213 insertions(+)

Upstream: cgit.freedesktop.org


  • Share