-
Kenneth Graunke authored
When demoting it from an output to a global, we need to actually move it to the correct list. While here, we also refactor so it's clear we aren't mutating the list while iterating. Closes: #2106 Fixes: f9fd04ac ("nir: Fix non-determinism in lower_global_vars_to_local") Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
39c23fd1