mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 13:50:11 +01:00
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:
parent
da8f98d202
commit
49897f99d6
1 changed files with 3 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue