zink: call gather_info during shader creation

this is totally out of sync at this point

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28466>
This commit is contained in:
Mike Blumenkrantz 2024-03-22 15:20:01 -04:00 committed by Marge Bot
parent 562cb8381e
commit 11e988fa80

View file

@ -5573,6 +5573,7 @@ zink_shader_create(struct zink_screen *screen, struct nir_shader *nir)
nir_gather_xfb_info_from_intrinsics(nir);
/* clean up io to improve direct access */
optimize_nir(nir, NULL, true);
nir_shader_gather_info(nir, nir_shader_get_entrypoint(nir));
scan_nir(screen, nir, ret);
rework_io_vars(nir, nir_var_shader_in);
rework_io_vars(nir, nir_var_shader_out);