nir: sort variables by location in nir_lower_io_passes to work around a bug
authorMarek Olšák <marek.olsak@amd.com>
Fri, 1 Sep 2023 22:56:10 +0000 (18:56 -0400)
committerMarge Bot <emma+marge@anholt.net>
Sat, 7 Oct 2023 11:18:40 +0000 (11:18 +0000)
commitf37e32b78b1e66c864e8741e9df3a1668894fd7c
tree148b0328ecbf3fdb371c94e3f6a0dbdf64c321af
parent3c1020724eca2488f13148364c1441b6c966c492
nir: sort variables by location in nir_lower_io_passes to work around a bug

I don't know why this is necessary, but it unblocks the work on varying
optimizations.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25394>
src/compiler/nir/nir.h
src/compiler/nir/nir_linking_helpers.c
src/compiler/nir/nir_lower_io.c