From 31e4e38f7d7490f82a815c7065c692fcdad9f19b Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Thu, 22 May 2025 23:39:40 +0200 Subject: [PATCH] crocus: Don't use deprecated NIR_PASS_V macro Signed-off-by: Christian Gmeiner Reviewed-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/crocus/crocus_program.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/crocus/crocus_program.c b/src/gallium/drivers/crocus/crocus_program.c index 368c49de39c..3c581bdf50c 100644 --- a/src/gallium/drivers/crocus/crocus_program.c +++ b/src/gallium/drivers/crocus/crocus_program.c @@ -2513,7 +2513,7 @@ crocus_compile_cs(struct crocus_context *ice, nir_shader *nir = nir_shader_clone(mem_ctx, ish->nir); - NIR_PASS_V(nir, elk_nir_lower_cs_intrinsics, devinfo, cs_prog_data); + NIR_PASS(_, nir, elk_nir_lower_cs_intrinsics, devinfo, cs_prog_data); crocus_setup_uniforms(devinfo, mem_ctx, nir, prog_data, &system_values, &num_system_values, &num_cbufs); @@ -2674,7 +2674,7 @@ crocus_create_uncompiled_shader(struct pipe_context *ctx, struct elk_nir_compiler_opts opts = {}; elk_preprocess_nir(screen->compiler, nir, &opts); - NIR_PASS_V(nir, elk_nir_lower_storage_image, + NIR_PASS(_, nir, elk_nir_lower_storage_image, &(struct elk_nir_lower_storage_image_opts) { .devinfo = devinfo, .lower_loads = true, @@ -2682,7 +2682,7 @@ crocus_create_uncompiled_shader(struct pipe_context *ctx, .lower_atomics = true, .lower_get_size = true, }); - NIR_PASS_V(nir, crocus_lower_storage_image_derefs); + NIR_PASS(_, nir, crocus_lower_storage_image_derefs); nir_sweep(nir);