summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGert Wollny <[email protected]>2019-12-28 15:35:39 +0100
committerGert Wollny <[email protected]>2020-01-04 16:22:40 +0000
commit829107819db50a74971dd3854e407f7df23a5216 (patch)
treec66b5f9a1658968a47de09cf7bc962835bffd6f8
parentbfbdaf9a46adb5c972b7f2464bd5f030c55da1cf (diff)
r600/sb: Correct SB disassambler for better debugging
Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Konstantin Kharlamov <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3286>
-rw-r--r--src/gallium/drivers/r600/sb/sb_bc_dump.cpp2
-rw-r--r--src/gallium/drivers/r600/sb/sb_dump.cpp7
2 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/sb/sb_bc_dump.cpp b/src/gallium/drivers/r600/sb/sb_bc_dump.cpp
index 9b2674daf27..de3c38805b8 100644
--- a/src/gallium/drivers/r600/sb/sb_bc_dump.cpp
+++ b/src/gallium/drivers/r600/sb/sb_bc_dump.cpp
@@ -157,6 +157,8 @@ void bc_dump::dump(cf_node& n) {
s << " ES:" << n.bc.elem_size;
+ s << " OP:" << n.bc.rat_inst;
+
if (n.bc.mark)
s << " MARK";
diff --git a/src/gallium/drivers/r600/sb/sb_dump.cpp b/src/gallium/drivers/r600/sb/sb_dump.cpp
index 70892e1c8c4..57dded5ef00 100644
--- a/src/gallium/drivers/r600/sb/sb_dump.cpp
+++ b/src/gallium/drivers/r600/sb/sb_dump.cpp
@@ -367,7 +367,12 @@ void dump::dump_op(node &n, const char *name) {
sblog << ", ";
}
- dump_vec(n.src);
+ if (n.subtype == NST_FETCH_INST) {
+ fetch_node *f = static_cast<fetch_node*>(&n);
+ if (f->bc.indexed)
+ dump_vec(n.src);
+ } else
+ dump_vec(n.src);
}
void dump::dump_set(shader &sh, val_set& v) {