From 3df48dec239db3d3af2836749b312554fda78411 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Wed, 6 May 2026 21:41:22 +0200 Subject: [PATCH] nir/lower_cl_images: call nir_progress on every function llvmpipe supports real function calls, so we need to call nir_progress on every function, not just the entry point. Cc: mesa-stable Reviewed-by: Dave Airlie Acked-by: Adam Jackson Part-of: --- src/compiler/nir/nir_lower_cl_images.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/compiler/nir/nir_lower_cl_images.c b/src/compiler/nir/nir_lower_cl_images.c index 8e21b4486f7..760e8449040 100644 --- a/src/compiler/nir/nir_lower_cl_images.c +++ b/src/compiler/nir/nir_lower_cl_images.c @@ -109,6 +109,12 @@ nir_dedup_inline_samplers(nir_shader *nir) bool nir_lower_cl_images(nir_shader *shader, bool lower_image_derefs, bool lower_sampler_derefs) { + nir_foreach_function_with_impl(function, impl, shader) { + if (function->is_entrypoint) + continue; + nir_no_progress(impl); + } + nir_function_impl *impl = nir_shader_get_entrypoint(shader); ASSERTED int last_loc = -1;