projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c697992
)
pan/bi: Add bi_foreach_block_from_rev helper
author
Alyssa Rosenzweig
<alyssa.rosenzweig@collabora.com>
Thu, 28 May 2020 19:01:38 +0000
(15:01 -0400)
committer
Marge Bot
<eric+marge@anholt.net>
Fri, 29 May 2020 20:34:55 +0000
(20:34 +0000)
Needed for next commit.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5260>
src/panfrost/bifrost/compiler.h
patch
|
blob
|
history
diff --git
a/src/panfrost/bifrost/compiler.h
b/src/panfrost/bifrost/compiler.h
index 92dfb963ed71f0c720a5ccfcc4f525b4201386fe..95c35609e5ebb6c884bc0becdf6c5bbcbd4045e1 100644
(file)
--- a/
src/panfrost/bifrost/compiler.h
+++ b/
src/panfrost/bifrost/compiler.h
@@
-498,6
+498,9
@@
bi_make_temp_reg(bi_context *ctx)
#define bi_foreach_block_from(ctx, from, v) \
list_for_each_entry_from(pan_block, v, from, &ctx->blocks, link)
+#define bi_foreach_block_from_rev(ctx, from, v) \
+ list_for_each_entry_from_rev(pan_block, v, from, &ctx->blocks, link)
+
#define bi_foreach_instr_in_block(block, v) \
list_for_each_entry(bi_instruction, v, &(block)->base.instructions, link)