From ea232c7cfd492fffb1dcf3ba07459c159e8bc112 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 5 Nov 2019 09:06:41 -0500 Subject: [PATCH] pan/midgard: Use generic constant packing for 8/64-bit Eventually, we will want to combine constants across types, but for now let's not break the world. Signed-off-by: Alyssa Rosenzweig --- src/panfrost/midgard/midgard_schedule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/midgard/midgard_schedule.c b/src/panfrost/midgard/midgard_schedule.c index 2e794687e66..418589a6192 100644 --- a/src/panfrost/midgard/midgard_schedule.c +++ b/src/panfrost/midgard/midgard_schedule.c @@ -369,7 +369,7 @@ mir_adjust_constants(midgard_instruction *ins, if (!ins->has_constants) return true; - if (ins->alu.reg_mode == midgard_reg_mode_16) { + if (ins->alu.reg_mode != midgard_reg_mode_32) { /* TODO: 16-bit constant combining */ if (pred->constant_count) return false; -- 2.30.2