From bc5724faf40df9aec6c8e2e52f4017db35d21330 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 5 Mar 2020 08:23:43 -0500 Subject: [PATCH] pan/bi: Add bi_print_shader Woot! That's the last of it! IR printing is now complete* *until the IR gets updated when new shiny things are added. Signed-off-by: Alyssa Rosenzweig Tested-by: Marge Bot Part-of: --- src/panfrost/bifrost/bi_print.c | 7 +++++++ src/panfrost/bifrost/bi_print.h | 1 + 2 files changed, 8 insertions(+) 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 -- 2.30.2