pan/bi: Set branch_constant if there is a branch
[mesa.git] / src / panfrost / bifrost / bi_schedule.c
index ba8c0a9338734ceb578cc226570134a308a79bec..f6652aa11352551efbb5ba01affa14ce51935a09 100644 (file)
@@ -199,6 +199,10 @@ bi_schedule(bi_context *ctx)
                         u->constant_count = 1;
                         u->constants[0] = ins->constant.u64;
 
+                        /* No indirect jumps yet */
+                        if (ins->type == BI_BRANCH)
+                                u->branch_constant = true;
+
                         u->clause_type = bi_clause_type_for_ins(ins);
 
                         list_addtail(&u->link, &bblock->clauses);