mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-21 15:28:18 +02:00
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:
parent
826281a2f6
commit
5794559647
2 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue