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

Timothy Arceri timothy.arceri at collabora.com
Thu Dec 22 01:56:06 UTC 2016


Reviewed-by: Timothy Arceri <timothy.arceri at collabora.com>

On Mon, 2016-12-19 at 20:11 -0800, Jason Ekstrand wrote:
> ---
>  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


More information about the mesa-dev mailing list