pan/bi: Link clauses back to their blocks
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5260>
This commit is contained in:
parent
9c32956750
commit
64bedbfa67
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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. */
|
||||
|
||||
|
|
Loading…
Reference in New Issue