From e4791d2bf85045f59451dcbc0e166b3c71ec3048 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 28 May 2020 14:15:09 -0400 Subject: [PATCH] pan/bi: Set branch conditional bit Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bi_schedule.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/panfrost/bifrost/bi_schedule.c b/src/panfrost/bifrost/bi_schedule.c index 0e0df05..248d9d8 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; -- 2.7.4