From: Rob Clark Date: Tue, 28 May 2019 16:42:26 +0000 (-0700) Subject: freedreno/ir3: immediately schedule meta instructions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7bbf21e89830588c576264c74e94076ea94eab34;p=mesa.git freedreno/ir3: immediately schedule meta instructions The aren't real instructions, and don't change # of live values, so no point in them competing with real instructions. Signed-off-by: Rob Clark Reviewed-by: Eric Anholt --- diff --git a/src/freedreno/ir3/ir3_sched.c b/src/freedreno/ir3/ir3_sched.c index 1b07bf8c1dd..f027d7b7a30 100644 --- a/src/freedreno/ir3/ir3_sched.c +++ b/src/freedreno/ir3/ir3_sched.c @@ -571,6 +571,9 @@ find_eligible_instr(struct ir3_sched_ctx *ctx, struct ir3_sched_notes *notes, if (!candidate) continue; + if (is_meta(candidate)) + return candidate; + deepest = MAX2(deepest, candidate->depth); }