compiler/clc: Switch to use nir_foreach_function_impl in function nir_lower_libclc

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23901>
This commit is contained in:
Yonggang Luo
2023-06-28 18:49:43 +08:00
committed by Marge Bot
parent 0dd0f35205
commit 5be8f98f5a

View File

@@ -105,9 +105,8 @@ nir_lower_libclc(nir_shader *shader,
/* do progress passes inside the pass */
do {
progress = false;
nir_foreach_function(function, shader) {
if (function->impl)
progress |= nir_lower_libclc_impl(function->impl, clc_shader, copy_vars);
nir_foreach_function_impl(impl, shader) {
progress |= nir_lower_libclc_impl(impl, clc_shader, copy_vars);
}
overall_progress |= progress;
} while (progress);