pan/bi: Fix dependency wait calculation
Unconditional branches have a successor in the first slot only. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8723>
This commit is contained in:
parent
6cb0a0ad63
commit
6f28a4449a
|
@ -708,7 +708,10 @@ bi_pack(bi_context *ctx, struct util_dynarray *emission)
|
|||
* the last clause of the block (the clause with the branch) */
|
||||
|
||||
bi_clause *succ_clause = block->base.successors[1] ?
|
||||
bi_next_clause(ctx, block->base.successors[0], NULL) : NULL;
|
||||
bi_next_clause(ctx, block->base.successors[1], NULL) : NULL;
|
||||
|
||||
if (!succ_clause && block->base.successors[0])
|
||||
succ_clause = bi_next_clause(ctx, block->base.successors[0], NULL);
|
||||
|
||||
bi_foreach_clause_in_block(block, clause) {
|
||||
bool is_last = clause->link.next == &block->clauses;
|
||||
|
|
Loading…
Reference in New Issue