From 2b1859cd0664bb3a70598e8264f166f0ad4a60e1 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 4 Aug 2024 11:32:12 -0400 Subject: [PATCH] agx: tweak jmp_exec_none heuristic to make sure border colour code is skipped. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_opt_jmp_none.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/asahi/compiler/agx_opt_jmp_none.c b/src/asahi/compiler/agx_opt_jmp_none.c index 46629063f01..f56a3499917 100644 --- a/src/asahi/compiler/agx_opt_jmp_none.c +++ b/src/asahi/compiler/agx_opt_jmp_none.c @@ -32,9 +32,10 @@ cost_instr(agx_instr *I) /* TODO: Better heuristic */ switch (I->op) { case AGX_OPCODE_DEVICE_LOAD: + return 10; case AGX_OPCODE_TEXTURE_LOAD: case AGX_OPCODE_TEXTURE_SAMPLE: - return 10; + return 50; default: return 1; }