iris: Properly move edgeflag_out from output list to global list
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 14 Nov 2019 18:10:27 +0000 (10:10 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 14 Nov 2019 22:50:09 +0000 (14:50 -0800)
commit39c23fd1bbdac2015cb3a15f3baab9ea95b94031
tree634df0a099a29de7e0d80ef1bed500e296619f60
parent790d0ebef3be3e0e9a09621572b1a2a30a0859fb
iris: Properly move edgeflag_out from output list to global list

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: https://gitlab.freedesktop.org/mesa/mesa/issues/2106
Fixes: f9fd04aca15 ("nir: Fix non-determinism in lower_global_vars_to_local")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/gallium/drivers/iris/iris_program.c