From 6d7e04d924e35fb65c90554328e3c6b78e2d2238 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 22 Aug 2022 10:25:14 +0300 Subject: [PATCH] nir/lower_shader_calls: add NIR_PASS_V internally Signed-off-by: Lionel Landwerlin Reviewed-by: Konstantin Seurer Part-of: --- src/compiler/nir/nir_lower_shader_calls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_lower_shader_calls.c b/src/compiler/nir/nir_lower_shader_calls.c index 591308b..7fc0ba9 100644 --- a/src/compiler/nir/nir_lower_shader_calls.c +++ b/src/compiler/nir/nir_lower_shader_calls.c @@ -1463,7 +1463,7 @@ nir_lower_shader_calls(nir_shader *shader, NIR_PASS_V(shader, spill_ssa_defs_and_lower_shader_calls, num_calls, stack_alignment); - nir_opt_remove_phis(shader); + NIR_PASS_V(shader, nir_opt_remove_phis); /* Make N copies of our shader */ nir_shader **resume_shaders = ralloc_array(mem_ctx, nir_shader *, num_calls); -- 2.7.4