nir: Add a array-of-vector variable shrinking pass
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 25 Jul 2018 02:32:27 +0000 (19:32 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 24 Aug 2018 02:46:56 +0000 (21:46 -0500)
commitbe8d009908ed32e3d15a9192b67a2020b99496a8
treebd0bda1c8500ca457486f823de524bac2e3c0d42
parent02a5442dd7a76905ad906cd80e57c019a83144b0
nir: Add a array-of-vector variable shrinking pass

This pass looks for variables with vector or array-of-vector types and
narrows the type to only the components used.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_split_vars.c