Mesa (main): pan/bi: Print flow control on instructions
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 1 16:29:30 UTC 2022
Module: Mesa
Branch: main
Commit: 82b1897900857dd40e199073a35389fb6da7cc31
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=82b1897900857dd40e199073a35389fb6da7cc31
Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date: Wed Jun 1 11:37:48 2022 -0400
pan/bi: Print flow control on instructions
This helps debug the flow control lowering passes on Valhall.
Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16804>
---
src/panfrost/bifrost/bi_printer.c.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/panfrost/bifrost/bi_printer.c.py b/src/panfrost/bifrost/bi_printer.c.py
index 60ff1116b8a..d00659f021e 100644
--- a/src/panfrost/bifrost/bi_printer.c.py
+++ b/src/panfrost/bifrost/bi_printer.c.py
@@ -180,6 +180,9 @@ bi_print_instr(const bi_instr *I, FILE *fp)
if (I->table)
fprintf(fp, ".table%u", I->table);
+ if (I->flow)
+ fprintf(fp, ".flow%u", I->flow);
+
if (I->op == BI_OPCODE_COLLECT_I32) {
for (unsigned i = 0; i < I->nr_srcs; ++i) {
if (i > 0)
More information about the mesa-commit
mailing list