anv: Drop anv_pipeline::use_primitive_replication
authorJason Ekstrand <jason.ekstrand@collabora.com>
Mon, 18 Jul 2022 16:34:59 +0000 (11:34 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 31 Aug 2022 02:00:18 +0000 (02:00 +0000)
commitae57628dd5c2fa56c2b0cedf0dcd596f36ccdc6e
treef98c913603c4157fa1e4ce8fc6d4c125e3d0d2ab
parentf1768f5640497da47b129ccbaabbe015c4d6548b
anv: Drop anv_pipeline::use_primitive_replication

Instead of this fragile use_primitive_replication bit which we set
differently depending on whether or not we pulled the shader out of the
cache, compute and use the information up-front during the compile and
then always fetch it from the vue_map after that.  This way, regardless
of whether the shader comes from the cache or not, we have the same flow
and there are no inconsistencies.

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_pipeline.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_pipeline.c