From: Alyssa Rosenzweig Date: Thu, 28 May 2020 16:39:26 +0000 (-0400) Subject: pan/bi: Passthrough ZERO in branch packing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f1298ae33658c7e0e1c2e07b70903338e0981bed;p=mesa.git pan/bi: Passthrough ZERO in branch packing There's a special mode for it. Signed-off-by: Alyssa Rosenzweig Part-of: --- 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 */