summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-04-01 16:23:12 -0400
committerMarge Bot <[email protected]>2020-04-05 23:26:04 +0000
commit08fe1081b72b16499329a56a0c5bc8de28168335 (patch)
tree06e25d07653b635af77471f1ec29e3dd2df21091 /src
parentc04964c6909544ebcf4c631c2b8b91594cd387fe (diff)
pan/bi: Export bi_class_name
For use in naming tests. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4458>
Diffstat (limited to 'src')
-rw-r--r--src/panfrost/bifrost/bi_print.c2
-rw-r--r--src/panfrost/bifrost/bi_print.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/panfrost/bifrost/bi_print.c b/src/panfrost/bifrost/bi_print.c
index 7a4b73aca2b..0f72cc9e96f 100644
--- a/src/panfrost/bifrost/bi_print.c
+++ b/src/panfrost/bifrost/bi_print.c
@@ -122,7 +122,7 @@ bi_ldst_type_name(enum bifrost_ldst_type type)
/* The remaining functions in this file are for IR-internal
* structures; the disassembler doesn't use them */
-static const char *
+const char *
bi_class_name(enum bi_class cl)
{
switch (cl) {
diff --git a/src/panfrost/bifrost/bi_print.h b/src/panfrost/bifrost/bi_print.h
index 04e3851c11f..f010c9659e9 100644
--- a/src/panfrost/bifrost/bi_print.h
+++ b/src/panfrost/bifrost/bi_print.h
@@ -38,6 +38,7 @@ const char * bi_round_mode_name(enum bifrost_roundmode mod);
const char * bi_csel_cond_name(enum bifrost_csel_cond cond);
const char * bi_interp_mode_name(enum bifrost_interp_mode mode);
const char * bi_ldst_type_name(enum bifrost_ldst_type type);
+const char * bi_class_name(enum bi_class cl);
void bi_print_instruction(bi_instruction *ins, FILE *fp);
void bi_print_bundle(bi_bundle *bundle, FILE *fp);