Module: Mesa
Branch: main
Commit: 8410468d2307b0c9f4ae92d48c244dfa65b20680
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8410468d2307b0c9f4ae92d48c244dfa65b20680

Author: Yonggang Luo <[email protected]>
Date:   Fri Jun 30 04:24:48 2023 +0800

llvmpipe: Convert to use nir_foreach_function_impl

Signed-off-by: Yonggang Luo <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23960>

---

 src/gallium/drivers/llvmpipe/lp_state_fs_analysis.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs_analysis.c 
b/src/gallium/drivers/llvmpipe/lp_state_fs_analysis.c
index 06e9e3b2b41..eac6c89ab09 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_fs_analysis.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_fs_analysis.c
@@ -505,11 +505,9 @@ static bool
 llvmpipe_nir_is_linear_compat(struct nir_shader *shader,
                               struct lp_tgsi_info *info)
 {
-   nir_foreach_function(function, shader) {
-      if (function->impl) {
-         if (!llvmpipe_nir_fn_is_linear_compat(shader, function->impl, info))
-            return false;
-      }
+   nir_foreach_function_impl(impl, shader) {
+      if (!llvmpipe_nir_fn_is_linear_compat(shader, impl, info))
+         return false;
    }
    return true;
 }

Reply via email to