diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-08-31 11:55:31 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-09-30 08:40:13 -0400 |
commit | a3b46c0db67360442b648d5fd08e421a97f720f6 (patch) | |
tree | 132e4bdc43c56fae1f842f68ec51f50bac964e97 /src/panfrost/midgard/compiler.h | |
parent | adda411263217e86345f039aef730665c73732ea (diff) |
pan/midgard: Calculate dependency graph
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/compiler.h')
-rw-r--r-- | src/panfrost/midgard/compiler.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/panfrost/midgard/compiler.h b/src/panfrost/midgard/compiler.h index 8612bab7686..780e4323554 100644 --- a/src/panfrost/midgard/compiler.h +++ b/src/panfrost/midgard/compiler.h @@ -136,6 +136,16 @@ typedef struct midgard_instruction { /* Generic hint for intra-pass use */ bool hint; + /* During scheduling, the backwards dependency graph + * (DAG). nr_dependencies is the number of unscheduled + * instructions that must still be scheduled after + * (before) this instruction. dependents are which + * instructions need to be scheduled before (after) this + * instruction. */ + + unsigned nr_dependencies; + BITSET_WORD *dependents; + union { midgard_load_store_word load_store; midgard_vector_alu alu; |