[Mesa-dev] [PATCH 2/6] nir: Correctly handle blocks in cf_node_cf_tree_next

Jason Ekstrand jason at jlekstrand.net
Tue Dec 20 04:11:48 UTC 2016


---
 src/compiler/nir/nir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c
index e522a67..b8d1abd 100644
--- a/src/compiler/nir/nir.c
+++ b/src/compiler/nir/nir.c
@@ -1754,7 +1754,7 @@ nir_block *nir_cf_node_cf_tree_last(nir_cf_node *node)
 nir_block *nir_cf_node_cf_tree_next(nir_cf_node *node)
 {
    if (node->type == nir_cf_node_block)
-      return nir_cf_node_cf_tree_first(nir_cf_node_next(node));
+      return nir_block_cf_tree_next(nir_cf_node_as_block(node));
    else if (node->type == nir_cf_node_function)
       return NULL;
    else
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list