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 <airlied@redhat.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41404>
This commit is contained in:
Karol Herbst 2026-05-06 21:41:22 +02:00 committed by Marge Bot
parent 593e3b3916
commit 3df48dec23

View file

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