pan/bi: Add bi_foreach_clause_in_block_safe helper
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206>
This commit is contained in:

committed by
Marge Bot

parent
2ff54cacf0
commit
74be83d876
@@ -583,6 +583,9 @@ bi_make_temp_reg(bi_context *ctx)
|
||||
#define bi_foreach_clause_in_block(block, v) \
|
||||
list_for_each_entry(bi_clause, v, &(block)->clauses, link)
|
||||
|
||||
#define bi_foreach_clause_in_block_safe(block, v) \
|
||||
list_for_each_entry_safe(bi_clause, v, &(block)->clauses, link)
|
||||
|
||||
#define bi_foreach_clause_in_block_from(block, v, from) \
|
||||
list_for_each_entry_from(bi_clause, v, from, &(block)->clauses, link)
|
||||
|
||||
|
Reference in New Issue
Block a user