nir/lower_io: don't renumber VS inputs when not called from a linker
authorMarek Olšák <marek.olsak@amd.com>
Thu, 4 May 2023 19:45:49 +0000 (15:45 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 18 May 2023 07:03:47 +0000 (07:03 +0000)
commit177af4557738b03faa6ea62b1f2925256800adad
tree30d064c8ed570470598c46b46a97c89de267c8b7
parent275cf62e20f9b42d69dea146e41589bc205799d0
nir/lower_io: don't renumber VS inputs when not called from a linker

This fixes a Nine regression. The comment explains it.

The new varying linking code will set true here.

Fixes: d29dd333 - nir: assign IO bases in nir_lower_io_passes
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8935

Reviewed-by: Timothy Arceri <tarceri@yahoo.com.au>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22859>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_io.c
src/gallium/drivers/radeonsi/si_shader_nir.c
src/mesa/state_tracker/st_glsl_to_nir.cpp