Mesa (master): radeonsi: print unknown registers with correct formatting

Marek Olšák mareko at kemper.freedesktop.org
Wed Nov 30 01:27:12 UTC 2016


Module: Mesa
Branch: master
Commit: 7abd94c9b0e3cde383c03cb0b7fa254575ac88e2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7abd94c9b0e3cde383c03cb0b7fa254575ac88e2

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Wed Nov 23 22:55:20 2016 +0100

radeonsi: print unknown registers with correct formatting

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

---

 src/gallium/drivers/radeonsi/si_debug.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_debug.c b/src/gallium/drivers/radeonsi/si_debug.c
index 3de7c71..26763a8 100644
--- a/src/gallium/drivers/radeonsi/si_debug.c
+++ b/src/gallium/drivers/radeonsi/si_debug.c
@@ -233,7 +233,8 @@ static void si_dump_reg(FILE *file, unsigned offset, uint32_t value,
 		}
 	}
 
-	fprintf(file, COLOR_YELLOW "0x%05x" COLOR_RESET " = 0x%08x", offset, value);
+	print_spaces(file, INDENT_PKT);
+	fprintf(file, COLOR_YELLOW "0x%05x" COLOR_RESET " <- 0x%08x\n", offset, value);
 }
 
 static void si_parse_set_reg_packet(FILE *f, uint32_t *ib, unsigned count,




More information about the mesa-commit mailing list