Re: [Mesa-dev] [PATCH 2/2] anv/pipeline: don't pass constant view index in multiview

2018-03-14 Thread Caio Marcelo de Oliveira Filho
On Tue, Feb 27, 2018 at 12:13:52PM -0800, Jason Ekstrand wrote: > > diff --git a/src/intel/vulkan/anv_nir_lower_multiview.c > > b/src/intel/vulkan/anv_nir_lower_multiview.c > > index d2aefdee62..365a70d757 100644 > > --- a/src/intel/vulkan/anv_nir_lower_multiview.c > > +++ b/src/intel/vulkan/anv_ni

Re: [Mesa-dev] [PATCH 2/2] anv/pipeline: don't pass constant view index in multiview

2018-02-27 Thread Jason Ekstrand
On Tue, Feb 27, 2018 at 11:46 AM, Caio Marcelo de Oliveira Filho < caio.olive...@intel.com> wrote: > 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 add

[Mesa-dev] [PATCH 2/2] anv/pipeline: don't pass constant view index in multiview

2018-02-27 Thread Caio Marcelo de Oliveira Filho
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. --- src/intel/vulkan/anv_nir_lower_multiview.c | 17 +++--