pan/bi: Cleanup terminal block check
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 5 Feb 2021 21:25:25 +0000 (16:25 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 8 Feb 2021 14:07:29 +0000 (14:07 +0000)
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>

src/panfrost/bifrost/bi_pack.c
src/panfrost/bifrost/compiler.h

index c7b8d96..2b1739e 100644 (file)
@@ -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;
index 69104f1..260b8d3 100644 (file)
@@ -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);