mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +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> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41404>
This commit is contained in:
parent
593e3b3916
commit
3df48dec23
1 changed files with 6 additions and 0 deletions
|
|
@ -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