anv/pipeline: don't pass constant view index in multiview
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 27 Feb 2018 19:46:51 +0000 (11:46 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 21 Mar 2018 21:49:50 +0000 (14:49 -0700)
commit12c22b897af1e015cf76b1cfee9e456a0e671f38
tree28f16d9f687019d7d2fa6c16b8ce488249eab26f
parent5e7c1d05d4f3732c79273b12e37de5d25ef108d5
anv/pipeline: don't pass constant view index in multiview

If view mask has only one bit set, view index is effectively a
constant, so doesn't need to be passed to the next stages, just always
set it.

Part of this was in the original patch that added
anv_nir_lower_multiview.c but disabled.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_nir_lower_multiview.c