aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/panfrost/bifrost/bi_print.c7
-rw-r--r--src/panfrost/bifrost/bi_print.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bi_print.c b/src/panfrost/bifrost/bi_print.c
index 5c465db6ed1..029b11d6e47 100644
--- a/src/panfrost/bifrost/bi_print.c
+++ b/src/panfrost/bifrost/bi_print.c
@@ -415,3 +415,10 @@ bi_print_block(bi_block *block, FILE *fp)
fprintf(fp, "\n");
}
+
+void
+bi_print_shader(bi_context *ctx, FILE *fp)
+{
+ bi_foreach_block(ctx, block)
+ bi_print_block(block, fp);
+}
diff --git a/src/panfrost/bifrost/bi_print.h b/src/panfrost/bifrost/bi_print.h
index a88844fc244..545f5254ae4 100644
--- a/src/panfrost/bifrost/bi_print.h
+++ b/src/panfrost/bifrost/bi_print.h
@@ -42,5 +42,6 @@ void bi_print_instruction(bi_instruction *ins, FILE *fp);
void bi_print_bundle(bi_bundle *bundle, FILE *fp);
void bi_print_clause(bi_clause *clause, FILE *fp);
void bi_print_block(bi_block *block, FILE *fp);
+void bi_print_shader(bi_context *ctx, FILE *fp);
#endif