pan/bi: Set branch conditional bit
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 28 May 2020 18:15:09 +0000 (14:15 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 29 May 2020 20:34:55 +0000 (20:34 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5260>

src/panfrost/bifrost/bi_schedule.c

index 0e0df05f2938c19edadea0d253211342eec49e29..248d9d80a9e001d836fca63af93f51578a12c69c 100644 (file)
@@ -227,8 +227,11 @@ bi_schedule(bi_context *ctx)
                         u->constants[0] = ins->constant.u64;
 
                         /* No indirect jumps yet */
                         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_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;
 
                         u->clause_type = bi_clause_type_for_ins(ins);
                         u->block = (struct bi_block *) block;