mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-15 06:40:27 +01:00
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:
parent
4a27f8887d
commit
08d98290fe
2 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue