pan/bi: Add bi_foreach_block_rev

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9421>
This commit is contained in:
Alyssa Rosenzweig
2021-03-05 02:30:56 +00:00
parent 8fde30925d
commit d91bf7257d
+3
View File
@@ -633,6 +633,9 @@ bi_node_to_index(unsigned node, unsigned node_count)
#define bi_foreach_block(ctx, v) \
list_for_each_entry(pan_block, v, &ctx->blocks, link)
#define bi_foreach_block_rev(ctx, v) \
list_for_each_entry_rev(pan_block, v, &ctx->blocks, link)
#define bi_foreach_block_from(ctx, from, v) \
list_for_each_entry_from(pan_block, v, from, &ctx->blocks, link)