nir/lower_shader_calls: add NIR_PASS_V internally

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16556>
This commit is contained in:
Lionel Landwerlin 2022-08-22 10:25:14 +03:00 committed by Marge Bot
parent dc70519c8a
commit 6d7e04d924

View file

@ -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);