From 2286c9ac21cf7398a7c7709c57954c81ad4083db Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Mon, 6 Jul 2020 13:50:06 +1000 Subject: [PATCH] panfrost: hide more unused code in bi_lower_combine.c Fixes some unused-function warnings. Reviewed-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bi_lower_combine.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/panfrost/bifrost/bi_lower_combine.c b/src/panfrost/bifrost/bi_lower_combine.c index 2d59b760c28..db955552b11 100644 --- a/src/panfrost/bifrost/bi_lower_combine.c +++ b/src/panfrost/bifrost/bi_lower_combine.c @@ -89,6 +89,7 @@ bi_combine_sel16(bi_context *ctx, bi_instruction *parent, unsigned comp, unsigne * If this pass is slow, this cost can be avoided in favour for better * bookkeeping. */ +#if 0 static bi_instruction * bi_get_parent(bi_context *ctx, unsigned idx) { @@ -99,6 +100,7 @@ bi_get_parent(bi_context *ctx, unsigned idx) return NULL; } +#endif /* Rewrites uses of an index. Again, this could be O(n) to the program but is * currently O(nc) to the program and number of combines, so the pass becomes @@ -124,6 +126,7 @@ bi_rewrite_uses(bi_context *ctx, /* Checks if we have a nicely aligned vector prefix */ +#if 0 static bool bi_is_aligned_vec32(bi_instruction *combine, unsigned s, bi_instruction *io, unsigned *count) @@ -158,7 +161,6 @@ bi_is_aligned_vec32(bi_instruction *combine, unsigned s, bi_instruction *io, return true; } -#if 0 /* Tries to lower a given source of a combine to an appropriate rewrite, * returning true if successful, and false with no changes otherwise. */ -- 2.30.2