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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user