aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-05-28 14:15:09 -0400
committerMarge Bot <[email protected]>2020-05-29 20:34:55 +0000
commite4791d2bf85045f59451dcbc0e166b3c71ec3048 (patch)
tree0cff9db6ca9d9f8ed417f921e42c50918318cbd0
parentffe7a61a46139b9d872ec60b686aad1926b857f7 (diff)
pan/bi: Set branch conditional bit
Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5260>
-rw-r--r--src/panfrost/bifrost/bi_schedule.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/panfrost/bifrost/bi_schedule.c b/src/panfrost/bifrost/bi_schedule.c
index 0e0df05f293..248d9d80a9e 100644
--- a/src/panfrost/bifrost/bi_schedule.c
+++ b/src/panfrost/bifrost/bi_schedule.c
@@ -227,8 +227,11 @@ bi_schedule(bi_context *ctx)
u->constants[0] = ins->constant.u64;
/* No indirect jumps yet */
- if (ins->type == BI_BRANCH)
+ if (ins->type == BI_BRANCH) {
u->branch_constant = true;
+ u->branch_conditional =
+ (ins->cond != BI_COND_ALWAYS);
+ }
u->clause_type = bi_clause_type_for_ins(ins);
u->block = (struct bi_block *) block;