projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eca516e
)
pan/bi: Add destination iterator macro
author
Alyssa Rosenzweig
<alyssa.rosenzweig@collabora.com>
Tue, 5 Jan 2021 15:28:47 +0000
(10:28 -0500)
committer
Marge Bot
<eric+marge@anholt.net>
Fri, 29 Jan 2021 16:55:43 +0000
(16:55 +0000)
Convenience.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8723>
src/panfrost/bifrost/compiler.h
patch
|
blob
|
history
diff --git
a/src/panfrost/bifrost/compiler.h
b/src/panfrost/bifrost/compiler.h
index
bea25bc
..
6b99bba
100644
(file)
--- a/
src/panfrost/bifrost/compiler.h
+++ b/
src/panfrost/bifrost/compiler.h
@@
-676,6
+676,9
@@
bi_node_to_index(unsigned node, unsigned node_count)
#define bi_foreach_src(ins, v) \
for (unsigned v = 0; v < ARRAY_SIZE(ins->src); ++v)
+#define bi_foreach_dest(ins, v) \
+ for (unsigned v = 0; v < ARRAY_SIZE(ins->dest); ++v)
+
static inline bi_instr *
bi_prev_op(bi_instr *ins)
{