diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-03-05 08:23:43 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-05 14:35:38 +0000 |
commit | bc5724faf40df9aec6c8e2e52f4017db35d21330 (patch) | |
tree | 9fd5864dbaa469eaf7e0b156c8be889c66fe77c7 /src | |
parent | c152d4c8352aca678386eaf75da83ae95e1bd7b5 (diff) |
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 <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4061>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4061>
Diffstat (limited to 'src')
-rw-r--r-- | src/panfrost/bifrost/bi_print.c | 7 | ||||
-rw-r--r-- | src/panfrost/bifrost/bi_print.h | 1 |
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 |