pan/bi: Add bi_print_bundle for printing bi_bundle
Post-schedule, nops are significnat here.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4061>
diff --git a/src/panfrost/bifrost/bi_print.c b/src/panfrost/bifrost/bi_print.c
index a445eb4..69e6d5d 100644
--- a/src/panfrost/bifrost/bi_print.c
+++ b/src/panfrost/bifrost/bi_print.c
@@ -328,3 +328,17 @@
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");
+ }
+}
+