llvmpipe: Convert to use nir_foreach_function_impl
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23960>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user