diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-05-28 13:48:46 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-29 20:34:55 +0000 |
commit | 64bedbfa67bc0f814ba6b0d4a587807fb9b88050 (patch) | |
tree | c8e2d131f9a6ee9eed0540f28f154291b6113f5c /src/panfrost | |
parent | 9c329567508836b5b40cfbacf29a840e1e6d4c41 (diff) |
pan/bi: Link clauses back to their blocks
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5260>
Diffstat (limited to 'src/panfrost')
-rw-r--r-- | src/panfrost/bifrost/bi_schedule.c | 1 | ||||
-rw-r--r-- | src/panfrost/bifrost/compiler.h | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bi_schedule.c b/src/panfrost/bifrost/bi_schedule.c index f6652aa1135..47444b87ce0 100644 --- a/src/panfrost/bifrost/bi_schedule.c +++ b/src/panfrost/bifrost/bi_schedule.c @@ -204,6 +204,7 @@ bi_schedule(bi_context *ctx) u->branch_constant = true; u->clause_type = bi_clause_type_for_ins(ins); + u->block = (struct bi_block *) block; list_addtail(&u->link, &bblock->clauses); } diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index fb95c6d83df..a283f3fed60 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -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. */ |