freedreno/ir3: add ir3_finalize_nir()
authorRob Clark <robdclark@chromium.org>
Mon, 15 Jun 2020 21:24:00 +0000 (14:24 -0700)
committerRob Clark <robdclark@chromium.org>
Fri, 26 Jun 2020 15:43:22 +0000 (08:43 -0700)
commitd3ae55937830853349bcc80298714167839c42f2
treeb2915849401646cb36dfd616ab34d7a90a04b89b
parente35b8971a74a62960e7328993d93a090a25c22a7
freedreno/ir3: add ir3_finalize_nir()

The next step is to hook this into pscreen->finalize_nir() so it can
come before the state tracker's shader-caching.

Unfortunately we still need to do lower_io after mesa/st, so that is
split out into a post-finalize pass.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5372>
src/freedreno/ir3/ir3_nir.c
src/freedreno/ir3/ir3_nir.h
src/freedreno/ir3/ir3_shader.c
src/gallium/drivers/freedreno/ir3/ir3_cmdline.c