diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-05-28 12:39:26 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-29 20:34:55 +0000 |
commit | f1298ae33658c7e0e1c2e07b70903338e0981bed (patch) | |
tree | a45d86f0f16cc5392dcb156966f55baec4038908 /src/panfrost/bifrost | |
parent | d619ff009b57e6949e88b9a607cc8f089d6d7ad2 (diff) |
pan/bi: Passthrough ZERO in branch packing
There's a special mode for it.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5260>
Diffstat (limited to 'src/panfrost/bifrost')
-rw-r--r-- | src/panfrost/bifrost/bi_pack.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ |