zink: always sort io variables by location after re-creating them

this otherwise breaks linking

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28466>
This commit is contained in:
Mike Blumenkrantz
2024-03-15 12:12:01 -04:00
committed by Marge Bot
parent 5fd03efda0
commit b8bf82133a
+2
View File
@@ -5516,6 +5516,8 @@ zink_shader_create(struct zink_screen *screen, struct nir_shader *nir)
optimize_nir(nir, NULL, true);
rework_io_vars(nir, nir_var_shader_in);
rework_io_vars(nir, nir_var_shader_out);
nir_sort_variables_by_location(nir, nir_var_shader_in);
nir_sort_variables_by_location(nir, nir_var_shader_out);
if (nir->info.stage < MESA_SHADER_COMPUTE)
create_gfx_pushconst(nir);