anv: Decouple primitive replication check from the fragment shader
authorJason Ekstrand <jason.ekstrand@collabora.com>
Mon, 18 Jul 2022 15:45:53 +0000 (10:45 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 31 Aug 2022 02:00:18 +0000 (02:00 +0000)
commit4bdbc4c93f1a010ef2bea376994ee2c64ca1fb29
treea3fa362efd5cb34bea6d605cff1033d482f3cb69
parent08d3c0e8e11f653ad4b031c61bd9620463fcf122
anv: Decouple primitive replication check from the fragment shader

Now that we're using nir_intrinsic_load_layer_id for ViewIndex, we can
use primitive replication even when the FS uses ViewIndex.  Also, only
check that active_stages doesn't contain anything other than VS and FS,
not that it's exactly VS | FS.  This both decouples things more and
allows primitive rplication in the depth-only case where we have no
fragment shader at all.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17602>
src/intel/vulkan/anv_nir_lower_multiview.c