nir/lower_io_to_scalar: Convert to use nir_shader_instructions_pass().
authorEric Anholt <eric@anholt.net>
Thu, 20 Aug 2020 19:10:39 +0000 (12:10 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 27 Aug 2020 23:01:52 +0000 (23:01 +0000)
commitc5e64c041fdf825dbb27c64cd0ccc391ccf28fff
tree28bb8f2b093658e9d267865a4d7c1aee802d639f
parentdfb8465341707970e557a96f7989cfc17bba4edc
nir/lower_io_to_scalar: Convert to use nir_shader_instructions_pass().

This unindents a whole bunch of code, and fixes the lack of metadata
tracking in the pass (which wasn't called in an opt loop so it hadn't been
caught before).

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