nir/lower_discard_to_demote: Use nir_shader_instructions_pass().
authorEric Anholt <eric@anholt.net>
Thu, 20 Aug 2020 19:32:20 +0000 (12:32 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 27 Aug 2020 23:01:52 +0000 (23:01 +0000)
commit31f75aaeefe0e1bce48a00efef2c153c0f5b8be7
treeda65ea42b683d6b7ff8ac9cbd5a0af009ef842ee
parent265dcb383673822686a3855225b49f376e51ebeb
nir/lower_discard_to_demote: Use nir_shader_instructions_pass().

Cleans up indentation, and clears the metadata tracking flag that would
break if this pass was used in in NIR_PASS().

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6412>
src/compiler/nir/nir_lower_discard_to_demote.c