summaryrefslogtreecommitdiffstats
path: root/src/freedreno/ir3/ir3_context.h
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2018-12-05 10:51:16 -0500
committerRob Clark <[email protected]>2018-12-07 13:49:21 -0500
commit5c2c1f0a2d5cec771b6cbfadf43f44a632ff57fc (patch)
tree8e5ff7e1c8cce27bdad6fded08494c746cda3f18 /src/freedreno/ir3/ir3_context.h
parent9517037bdcd997fbffc0b5b07eede0e6a114ece3 (diff)
freedreno/ir3: track max flow control depth for a5xx/a6xx
Rather than just hard-coding BRANCHSTACK size. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/freedreno/ir3/ir3_context.h')
-rw-r--r--src/freedreno/ir3/ir3_context.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/freedreno/ir3/ir3_context.h b/src/freedreno/ir3/ir3_context.h
index 63c5d8baaf9..99f43cb5ab6 100644
--- a/src/freedreno/ir3/ir3_context.h
+++ b/src/freedreno/ir3/ir3_context.h
@@ -86,6 +86,11 @@ struct ir3_context {
unsigned num_arrays;
+ /* Tracking for max level of flowcontrol (branchstack) needed
+ * by a5xx+:
+ */
+ unsigned stack, max_stack;
+
/* a common pattern for indirect addressing is to request the
* same address register multiple times. To avoid generating
* duplicate instruction sequences (which our backend does not