From 5be8f98f5ac5cbdb314bdd88d6b6f51642d7701c Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Wed, 28 Jun 2023 18:49:43 +0800 Subject: [PATCH] compiler/clc: Switch to use nir_foreach_function_impl in function nir_lower_libclc Signed-off-by: Yonggang Luo Reviewed-by: Jesse Natalie Part-of: --- src/compiler/clc/nir_lower_libclc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/compiler/clc/nir_lower_libclc.c b/src/compiler/clc/nir_lower_libclc.c index 0fa8e024da8..d6d9696bf45 100644 --- a/src/compiler/clc/nir_lower_libclc.c +++ b/src/compiler/clc/nir_lower_libclc.c @@ -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);