nir/lower_subgroups: Don't do multiple lowerings at once
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 1 Feb 2019 10:01:31 +0000 (11:01 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 20 Sep 2023 14:41:18 +0000 (14:41 +0000)
commit0ef87f148dfa8d6bcabacb1e46cf95a3e0d4f482
tree2cbd6502278e6cc9a8b44e5d4b6af1b420ab5b11
parent465644640a0a8bfee3200c7dafdca11938c88311
nir/lower_subgroups: Don't do multiple lowerings at once

Since using nir_shader_lower_instructions(), instructions get revisited
before proceeding with the next one. This already guarantees that any
subsequent lowerings of those instructions happen during the same pass
of nir_lower_subgroups().

v2: use nir_shader_lower_instructions() instead of setting the cursor.

Co-authored-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25123>
src/compiler/nir/nir_lower_subgroups.c