nir: remove nir_io_add_const_offset_to_base

nir_opt_constant_folding does it now.

Acked-by: Emma Anholt <emma@anholt.net>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38277>
This commit is contained in:
Marek Olšák
2025-11-05 20:17:30 -05:00
committed by Marge Bot
parent 726bbb352e
commit fa0bea5ff8
20 changed files with 35 additions and 223 deletions
+2 -2
View File
@@ -1188,8 +1188,8 @@ poly_nir_lower_gs(nir_shader *gs, nir_shader **gs_count, nir_shader **gs_copy,
{
/* Lower I/O as assumed by the rest of GS lowering */
if (gs->xfb_info != NULL) {
NIR_PASS(_, gs, nir_io_add_const_offset_to_base,
nir_var_shader_in | nir_var_shader_out);
/* Fold constant offset srcs for IO. */
NIR_PASS(_, gs, nir_opt_constant_folding);
NIR_PASS(_, gs, nir_io_add_intrinsic_xfb_info);
}