freedreno/ir3: Don't lower_gs multiple times
authorRob Clark <robdclark@chromium.org>
Fri, 1 Jul 2022 21:44:00 +0000 (14:44 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 8 Jul 2022 20:32:35 +0000 (20:32 +0000)
commit5434de7ab6b051d5a37c2ae908f2bdcc39ce7053
tree3b11da783d4f57577f060e5c58ff4299125efdc9
parent62c5d428bc50630f772c613bb8ed6599cfd566eb
freedreno/ir3: Don't lower_gs multiple times

At least with gallium, this can be called multiple times via
pipe_screen::finalize_nir().  But it is not designed to be called
multiple times, and can result in vertex_flags getting 'optimized'
away.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6720
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17341>
src/freedreno/ir3/ir3_nir_lower_tess.c