Mesa (master): panfrost: hide more unused code in bi_lower_combine.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jul 8 03:41:53 UTC 2020
Module: Mesa
Branch: master
Commit: 2286c9ac21cf7398a7c7709c57954c81ad4083db
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2286c9ac21cf7398a7c7709c57954c81ad4083db
Author: Timothy Arceri <tarceri at itsqueeze.com>
Date: Mon Jul 6 13:50:06 2020 +1000
panfrost: hide more unused code in bi_lower_combine.c
Fixes some unused-function warnings.
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5766>
---
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. */
More information about the mesa-commit
mailing list