nir/nir_lower_wrmasks: Use the nir_lower_instructions_pass() helper.
authorEric Anholt <eric@anholt.net>
Thu, 20 Aug 2020 19:25:52 +0000 (12:25 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 27 Aug 2020 23:01:52 +0000 (23:01 +0000)
commit265dcb383673822686a3855225b49f376e51ebeb
treea7d06aa9dbef6a803a9a88ba34f3455fc5e4fc78
parentc5e64c041fdf825dbb27c64cd0ccc391ccf28fff
nir/nir_lower_wrmasks: Use the nir_lower_instructions_pass() helper.

This fixes the invalidation of metadata when we didn't modify the shader
and unindents a bunch of code.

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