nir: don't remove dead IO variables in nir_lower_io_passes for st_link_nir
authorMarek Olšák <marek.olsak@amd.com>
Wed, 1 Mar 2023 04:12:58 +0000 (23:12 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 19 Apr 2023 21:42:11 +0000 (21:42 +0000)
commit28374b466ca0d5797177dd5cd3d3af6e15c21cb8
tree07ae07e1e17109d3412d30b8b75cdb644f0e4a68
parentf11118a36be3fc074dda1a56d9a1f118a07783eb
nir: don't remove dead IO variables in nir_lower_io_passes for st_link_nir

We need to keep variables in the IR because a few places use them,
like nir_build_program_resource_list. This will allow us to lower IO
in the linker.

Reviewed-by: Qiang Yu <yuq825@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21861>
src/compiler/nir/nir_lower_io.c
src/gallium/drivers/radeonsi/si_shader_nir.c
src/mesa/state_tracker/st_glsl_to_nir.cpp