From: Alyssa Rosenzweig Date: Thu, 5 Mar 2020 13:23:43 +0000 (-0500) Subject: pan/bi: Add bi_print_shader X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc5724faf40df9aec6c8e2e52f4017db35d21330;p=mesa.git 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: --- 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