pan/bi: Add bi_print_shader
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 5 Mar 2020 13:23:43 +0000 (08:23 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 5 Mar 2020 14:35:38 +0000 (14:35 +0000)
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 <alyssa.rosenzweig@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4061>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4061>

src/panfrost/bifrost/bi_print.c
src/panfrost/bifrost/bi_print.h

index 5c465db6ed17739a6f1fa7a69286a7d1cb8bd6b6..029b11d6e470603fed771ac1fdc10b77d10bdf45 100644 (file)
@@ -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);
+}
index a88844fc2449617239a8197527f7a7f07dd39235..545f5254ae4cf5cf4381ee1b3da05cf114f8b2fb 100644 (file)
@@ -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