From f1298ae33658c7e0e1c2e07b70903338e0981bed Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 28 May 2020 12:39:26 -0400 Subject: [PATCH] pan/bi: Passthrough ZERO in branch packing There's a special mode for it. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bi_pack.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/panfrost/bifrost/bi_pack.c b/src/panfrost/bifrost/bi_pack.c index 0cc56584303..9f8bf6b08a4 100644 --- a/src/panfrost/bifrost/bi_pack.c +++ b/src/panfrost/bifrost/bi_pack.c @@ -125,6 +125,7 @@ bi_assign_uniform_constant_single( bi_foreach_src(ins, s) { if (s == 0 && (ins->type == BI_LOAD_VAR_ADDRESS || ins->type == BI_LOAD_ATTR)) continue; + if (s == 1 && (ins->type == BI_BRANCH)) continue; if (ins->src[s] & BIR_INDEX_CONSTANT) { /* Let direct addresses through */ -- 2.30.2