nir: use nir_shader_instructions_pass in nir_lower_clip_disable
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Mon, 9 Aug 2021 13:06:35 +0000 (15:06 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 26 Sep 2022 11:13:03 +0000 (11:13 +0000)
commitc6e4641a21a3ba689740f5cb802db6099c51b3f3
treec9ac7275d3052df49ea2daba0e50af5d33470565
parenta1efa18dfe7c62ae5e3976799ab516bdd4776a1c
nir: use nir_shader_instructions_pass in nir_lower_clip_disable

Changes:
- nir_metadata_preserve(..., nir_metadata_block_index | nir_metadata_dominance)
  is called only when pass makes progress
- nir_metadata_preserve(..., nir_metadata_all) is called when pass doesn't
  make progress

Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12282>
src/compiler/nir/nir_lower_clip_disable.c