mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 21:20:12 +01:00
nir: Correctly handle blocks in cf_node_cf_tree_next
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
This commit is contained in:
parent
3321eb4c36
commit
993e9195d4
1 changed files with 1 additions and 1 deletions
|
|
@ -1753,7 +1753,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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue