agx: Don't use nir_variable when gathering flat varyings
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 18 Dec 2022 16:59:19 +0000 (11:59 -0500)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 5 Jan 2023 16:49:22 +0000 (11:49 -0500)
commit617f2f7a024124340d175e668213977823778c61
tree9fa708ae52c2d3088a07484cf04c83edcbd842ad
parentd00a43f682c395a22e7037174600e1805a8403b6
agx: Don't use nir_variable when gathering flat varyings

Walk the IR instead. This happens when preprocessing so it doesn't really
matter, but it complicates the nir_variable audit.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20446>
src/asahi/compiler/agx_compile.c