diff --git a/src/panfrost/bifrost/bi_print.c b/src/panfrost/bifrost/bi_print.c index a445eb4c41a..69e6d5d9e12 100644 --- a/src/panfrost/bifrost/bi_print.c +++ b/src/panfrost/bifrost/bi_print.c @@ -328,3 +328,17 @@ bi_print_instruction(bi_instruction *ins, FILE *fp) fprintf(fp, "\n"); } + +void +bi_print_bundle(bi_bundle *bundle, FILE *fp) +{ + bi_instruction *ins[2] = { bundle->fma, bundle->add }; + + for (unsigned i = 0; i < 2; ++i) { + if (ins[i]) + bi_print_instruction(ins[i], fp); + else + fprintf(fp, "nop\n"); + } +} + diff --git a/src/panfrost/bifrost/bi_print.h b/src/panfrost/bifrost/bi_print.h index cc2689afae2..e9b301a39d3 100644 --- a/src/panfrost/bifrost/bi_print.h +++ b/src/panfrost/bifrost/bi_print.h @@ -39,5 +39,6 @@ const char * bi_interp_mode_name(enum bifrost_interp_mode mode); const char * bi_ldst_type_name(enum bifrost_ldst_type type); void bi_print_instruction(bi_instruction *ins, FILE *fp); +void bi_print_bundle(bi_bundle *bundle, FILE *fp); #endif