pan/bi: Cleanup terminal block check
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/8354>
This commit is contained in:

committed by
Marge Bot

parent
4a27f8887d
commit
08d98290fe
@@ -567,7 +567,7 @@ bi_pack_constants(bi_context *ctx, bi_clause *clause,
|
||||
bi_instr *br = clause->tuples[clause->tuple_count - 1].add;
|
||||
assert(br && br->branch_target);
|
||||
|
||||
if (!bi_is_terminal_block(ctx, br->branch_target)) {
|
||||
if (!bi_is_terminal_block(br->branch_target)) {
|
||||
/* Put it in the high place */
|
||||
int32_t qwords = bi_block_offset(ctx, clause, br->branch_target);
|
||||
int32_t bytes = qwords * 16;
|
||||
|
@@ -751,9 +751,8 @@ unsigned bi_clause_quadwords(bi_clause *clause);
|
||||
signed bi_block_offset(bi_context *ctx, bi_clause *start, bi_block *target);
|
||||
|
||||
static inline bool
|
||||
bi_is_terminal_block(bi_context *ctx, bi_block *block)
|
||||
bi_is_terminal_block(bi_block *block)
|
||||
{
|
||||
|
||||
return block->base.successors[0] == NULL &&
|
||||
block->base.successors[1] == NULL &&
|
||||
list_is_empty(&block->clauses);
|
||||
|
Reference in New Issue
Block a user