nir/opt_shrink_vectors: enable sparse intrinsics shrinking
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 4 Jul 2023 12:06:50 +0000 (15:06 +0300)
committerMarge Bot <emma+marge@anholt.net>
Thu, 6 Jul 2023 13:16:13 +0000 (13:16 +0000)
commit0a6dd797ea7fef18eb9e4665bb442e02c4340be0
treed9eeb3956aa1e056b8c1f6ff5ce03ca283709169
parentc26c0a36d3468c438261801c87f53e96b93efc64
nir/opt_shrink_vectors: enable sparse intrinsics shrinking

Image sparse loads can be stripped from their sparse component if
unused and turned into non sparse variants.

Texture sparse accesses can also be turned off if unused.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23995>
src/compiler/nir/nir_opt_shrink_vectors.c