pan/bi: Link clauses back to their blocks
[mesa.git] / src / panfrost / bifrost / compiler.h
index fb95c6d83df8350153feda0a3b1f0ade45210f65..a283f3fed60a55962b15e720f6be7de58955778e 100644 (file)
@@ -335,9 +335,14 @@ typedef struct {
         bi_instruction *add;
 } bi_bundle;
 
+struct bi_block;
+
 typedef struct {
         struct list_head link;
 
+        /* Link back up for branch calculations */
+        struct bi_block *block;
+
         /* A clause can have 8 instructions in bundled FMA/ADD sense, so there
          * can be 8 bundles. */