summaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/midgard_liveness.c
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-10-03 21:51:27 -0400
committerAlyssa Rosenzweig <[email protected]>2019-10-03 22:29:51 -0400
commit39a4b3ebe94c5c0f642db7e347896d4a51df8f36 (patch)
treeaad433f106cb5494d7d72f295a57773d937d8778 /src/panfrost/midgard/midgard_liveness.c
parentad5fcac005876b5e743281b4198b55a0886fbe0d (diff)
pan/midgard: Calculate temp_count for liveness
This needs to be correct or the analysis fails. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/midgard_liveness.c')
-rw-r--r--src/panfrost/midgard/midgard_liveness.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/panfrost/midgard/midgard_liveness.c b/src/panfrost/midgard/midgard_liveness.c
index 4aceab7e3bc..e272931bd2f 100644
--- a/src/panfrost/midgard/midgard_liveness.c
+++ b/src/panfrost/midgard/midgard_liveness.c
@@ -117,6 +117,8 @@ mir_compute_liveness(compiler_context *ctx)
if (ctx->metadata & MIDGARD_METADATA_LIVENESS)
return;
+ mir_compute_temp_count(ctx);
+
/* List of midgard_block */
struct set *work_list = _mesa_set_create(ctx,
_mesa_hash_pointer,