ac/nir: only enable used channels when exporting parameters
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 1 Mar 2018 10:54:22 +0000 (11:54 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 6 Mar 2018 09:38:35 +0000 (10:38 +0100)
commitf3275ca01cddd5d1e999e3805eff42e06ce6e974
tree12764dd976976206055198a313b420192315169d
parent675dde13b2decc92a1babd545289a9912323861c
ac/nir: only enable used channels when exporting parameters

This allows us to generate, for example,
"exp param0 v0, off, off, off" if only the first channel is needed.

Not sure if this improves performance but it's worth trying.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c