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

Author: Rob Clark <[email protected]>
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 <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>

---

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

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to