nir: use nir_shader_instructions_pass in nir_lower_clamp_color_outputs
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Mon, 9 Aug 2021 12:43:45 +0000 (14:43 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 26 Sep 2022 11:13:03 +0000 (11:13 +0000)
commita1efa18dfe7c62ae5e3976799ab516bdd4776a1c
treea000b3503381632d030e11cc0a63f081f0df7bc8
parentc7078fe4e07e0f19a4ae1a070f63d40fba542619
nir: use nir_shader_instructions_pass in nir_lower_clamp_color_outputs

Changes:
- removal of lower_state (not needed anymore)
- 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_clamp_color_outputs.c