ir3: set UL flag before ir3_lower_subgroups
authorChia-I Wu <olvaffe@gmail.com>
Fri, 22 Jul 2022 17:33:20 +0000 (10:33 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 27 Jul 2022 17:08:03 +0000 (17:08 +0000)
commit8001c78d49580b89eac970c4201ab2561473ffbb
tree62fd1a186ca24c9b3d34241e41b5ce12c2a994f9
parent7023cab0935c4286ab6dc011e22fe76e4a47f85a
ir3: set UL flag before ir3_lower_subgroups

ir3_legalize_relative, extracted from ir3_legalize, assumes a0 is loaded
first in each block if there is any user in the block.
ir3_lower_subgroups breaks the assumption.  We need to do
ir3_legalize_relative first.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6902
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17720>
src/freedreno/ir3/ir3.h
src/freedreno/ir3/ir3_compiler_nir.c
src/freedreno/ir3/ir3_legalize.c
src/freedreno/ir3/ir3_legalize_relative.c [new file with mode: 0644]
src/freedreno/ir3/meson.build