From: Gert Wollny Date: Sat, 28 Dec 2019 14:35:39 +0000 (+0100) Subject: r600/sb: Correct SB disassambler for better debugging X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=829107819db50a74971dd3854e407f7df23a5216;p=mesa.git r600/sb: Correct SB disassambler for better debugging Signed-off-by: Gert Wollny Reviewed-by: Konstantin Kharlamov Part-of: --- 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(&n); + if (f->bc.indexed) + dump_vec(n.src); + } else + dump_vec(n.src); } void dump::dump_set(shader &sh, val_set& v) {