nir/copy_prop_vars: use NIR_MAX_VEC_COMPONENTS
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 16 Jan 2019 19:48:32 +0000 (11:48 -0800)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 1 Mar 2019 07:50:05 +0000 (23:50 -0800)
commit33dafdc0248cce18ef923313656466dc15ff4c73
treeff39bce83fd99f1e5f7ceef486814e84554d9b2e
parente84c841fb07cbb3e2d5d28ab55c91ccd8cf41f64
nir/copy_prop_vars: use NIR_MAX_VEC_COMPONENTS

Also replace uses of 0xf with the appropriate full mask created from
the number of components.

Note that an increase of MAX might make us change how the data is
stored later on, but for now at least we make sure the pass is not
hardcoded.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_opt_copy_prop_vars.c