Mesa (master): freedreno/ir3: immediately schedule meta instructions

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jun 3 19:44:33 UTC 2019


Module: Mesa
Branch: master
Commit: 7bbf21e89830588c576264c74e94076ea94eab34
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7bbf21e89830588c576264c74e94076ea94eab34

Author: Rob Clark <robdclark at chromium.org>
Date:   Tue May 28 09:42:26 2019 -0700

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 <robdclark at chromium.org>
Reviewed-by: Eric Anholt <eric at anholt.net>

---

 src/freedreno/ir3/ir3_sched.c | 3 +++
 1 file changed, 3 insertions(+)

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);
 	}
 




More information about the mesa-commit mailing list