i915: Remove NIR_PASS_V and updated it to NIR_PASS

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35889>
This commit is contained in:
jhananit 2025-06-24 19:22:11 +00:00 committed by Marge Bot
parent debd903a00
commit d455074cc8
2 changed files with 3 additions and 4 deletions

View file

@ -193,8 +193,7 @@ i915_optimize_nir(struct nir_shader *s)
do {
progress = false;
NIR_PASS_V(s, nir_lower_vars_to_ssa);
NIR_PASS(progress, s, nir_lower_vars_to_ssa);
NIR_PASS(progress, s, nir_copy_prop);
NIR_PASS(progress, s, nir_opt_algebraic);
NIR_PASS(progress, s, nir_opt_constant_folding);
@ -233,7 +232,7 @@ i915_optimize_nir(struct nir_shader *s)
/* Group texture loads together to try to avoid hitting the
* texture indirection phase limit.
*/
NIR_PASS_V(s, nir_group_loads, nir_group_all, ~0);
NIR_PASS(_, s, nir_group_loads, nir_group_all, ~0);
}
static char *

View file

@ -672,7 +672,7 @@ i915_create_vs_state(struct pipe_context *pipe,
if (templ->type == PIPE_SHADER_IR_NIR) {
nir_shader *s = templ->ir.nir;
NIR_PASS_V(s, nir_lower_point_size, 1.0, 255.0);
NIR_PASS(_, s, nir_lower_point_size, 1.0, 255.0);
/* The gallivm draw path doesn't support non-native-integers NIR shaders,
* st/mesa does native-integers for the screen as a whole rather than