pan/bi: Add destination iterator macro
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 5 Jan 2021 15:28:47 +0000 (10:28 -0500)
committerMarge 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

index bea25bc..6b99bba 100644 (file)
@@ -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)
 {