From 2ebb3c3e37a32327b9a70a3a07eac90d7c844478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Tue, 18 Feb 2025 17:31:19 +0100 Subject: [PATCH] hk: Don't use deprecated NIR_PASS_V macro anymore. Reviewed-by: Alyssa Rosenzweig Part-of: --- src/asahi/vulkan/hk_shader.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/asahi/vulkan/hk_shader.c b/src/asahi/vulkan/hk_shader.c index 47316450497..1b9e63410e7 100644 --- a/src/asahi/vulkan/hk_shader.c +++ b/src/asahi/vulkan/hk_shader.c @@ -160,7 +160,7 @@ hk_preprocess_nir_internal(struct vk_physical_device *vk_pdev, nir_shader *nir) */ nir_shader_gather_info(nir, nir_shader_get_entrypoint(nir)); - NIR_PASS_V(nir, nir_lower_io_to_temporaries, nir_shader_get_entrypoint(nir), + NIR_PASS(_, nir, nir_lower_io_to_temporaries, nir_shader_get_entrypoint(nir), true, false); NIR_PASS(_, nir, nir_lower_global_vars_to_local); @@ -679,7 +679,7 @@ hk_lower_nir(struct hk_device *dev, nir_shader *nir, const nir_opt_access_options access_options = { .is_vulkan = true, }; - NIR_PASS_V(nir, nir_opt_access, &access_options); + NIR_PASS(_, nir, nir_opt_access, &access_options); if (nir->info.stage == MESA_SHADER_FRAGMENT) { NIR_PASS(_, nir, nir_lower_input_attachments, @@ -1142,7 +1142,7 @@ hk_compile_shader(struct hk_device *dev, struct vk_shader_compile_info *info, NIR_PASS(_, nir, agx_nir_lower_sample_intrinsics, false); } else if (sw_stage == MESA_SHADER_TESS_CTRL) { - NIR_PASS_V(nir, agx_nir_lower_tcs); + NIR_PASS(_, nir, agx_nir_lower_tcs); } /* Compile all variants up front */