st/mesa: recompute IO bases for ARB_vp/fp

This is a prerequisite for generating lowered IO for ARB_vp/fp.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32779>
This commit is contained in:
Marek Olšák
2025-01-05 08:56:55 -05:00
committed by Marge Bot
parent da8f98d202
commit 49897f99d6

View File

@@ -395,6 +395,9 @@ st_prog_to_nir_postprocess(struct st_context *st, nir_shader *nir,
/* Optimise NIR */
NIR_PASS(_, nir, nir_opt_constant_folding);
gl_nir_opts(nir);
/* This must be done after optimizations to assign IO bases. */
nir_recompute_io_bases(nir, nir_var_shader_in | nir_var_shader_out);
st_finalize_nir_before_variants(nir);
if (st->allow_st_finalize_nir_twice) {