aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/util
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-05-12 13:19:23 -0400
committerMarge Bot <[email protected]>2020-05-12 22:30:41 +0000
commitd429187bf3988fca190fcbd53e416b8a46506b25 (patch)
tree6797c8fa06ba27b6d7ce506f434fc06ecf602306 /src/panfrost/util
parent3228b3106a672e79093f2186f3e040a7579cd7b4 (diff)
pan/mdg: Analyze helper execution requirements
Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5014>
Diffstat (limited to 'src/panfrost/util')
-rw-r--r--src/panfrost/util/pan_ir.h7
-rw-r--r--src/panfrost/util/pan_liveness.c8
2 files changed, 7 insertions, 8 deletions
diff --git a/src/panfrost/util/pan_ir.h b/src/panfrost/util/pan_ir.h
index c57a8e01c34..a45478ae6ec 100644
--- a/src/panfrost/util/pan_ir.h
+++ b/src/panfrost/util/pan_ir.h
@@ -160,6 +160,13 @@ struct pan_instruction {
_entry_##v = _mesa_set_next_entry(blk->predecessors, _entry_##v), \
v = (struct pan_block *) (_entry_##v ? _entry_##v->key : NULL))
+static inline pan_block *
+pan_exit_block(struct list_head *blocks)
+{
+ pan_block *last = list_last_entry(blocks, pan_block, link);
+ assert(!last->successors[0] && !last->successors[1]);
+ return last;
+}
typedef void (*pan_liveness_update)(uint16_t *, void *, unsigned max);
diff --git a/src/panfrost/util/pan_liveness.c b/src/panfrost/util/pan_liveness.c
index a46a11d9d3c..9772feb1a9c 100644
--- a/src/panfrost/util/pan_liveness.c
+++ b/src/panfrost/util/pan_liveness.c
@@ -104,14 +104,6 @@ liveness_block_update(
* adding the predecessors of the block to the work list if we made progress.
*/
-static inline pan_block *
-pan_exit_block(struct list_head *blocks)
-{
- pan_block *last = list_last_entry(blocks, pan_block, link);
- assert(!last->successors[0] && !last->successors[1]);
- return last;
-}
-
void
pan_compute_liveness(
struct list_head *blocks,