ir3: Call nir_lower_wrmask() again after lowering scratch
authorConnor Abbott <cwabbott0@gmail.com>
Thu, 20 May 2021 16:26:55 +0000 (18:26 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 21 May 2021 20:45:07 +0000 (20:45 +0000)
commit0ab01f42156411637d2f3aeba48132c259ef4c02
treeddf311014d96a65fa65ca45e7fc08f8eb38d1914
parent738b12a492b68e0f7a41ac93a696362a4bb34d83
ir3: Call nir_lower_wrmask() again after lowering scratch

I forgot that after rebasing on large_consts support that this is now
called after the first time nir_lower_wrmask is called and can generate
partial writemasks that need to be lowered. While we're here, also call
the main optimization loop if things are lowered to scratch because it
generates address arithmetic that may need to be cleaned up.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10922>
src/freedreno/ir3/ir3_nir.c
src/gallium/drivers/freedreno/ci/piglit-freedreno-a630-fails.txt