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>
(cherry picked from commit 3df48dec23)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41540>
This commit is contained in:
Karol Herbst 2026-05-06 21:41:22 +02:00 committed by Eric Engestrom
parent 826281a2f6
commit 5794559647
2 changed files with 7 additions and 1 deletions

View file

@ -2764,7 +2764,7 @@
"description": "nir/lower_cl_images: call nir_progress on every function",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

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;