[Mesa-dev] [PATCH 02/10] radeonsi: don't print bodies of header-only packets

Marek Olšák maraeo at gmail.com
Mon Nov 28 11:16:55 UTC 2016


From: Marek Olšák <marek.olsak at amd.com>

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

diff --git a/src/gallium/drivers/radeonsi/si_debug.c b/src/gallium/drivers/radeonsi/si_debug.c
index 26763a8..b2c3574 100644
--- a/src/gallium/drivers/radeonsi/si_debug.c
+++ b/src/gallium/drivers/radeonsi/si_debug.c
@@ -361,20 +361,24 @@ static uint32_t *si_parse_packet3(FILE *f, uint32_t *ib, int *num_dw,
 		si_dump_reg(f, R_504_DST_ADDR_HI, ib[5], ~0);
 		si_dump_reg(f, R_414_COMMAND, ib[6], ~0);
 		break;
 	case PKT3_INDIRECT_BUFFER_SI:
 	case PKT3_INDIRECT_BUFFER_CONST:
 	case PKT3_INDIRECT_BUFFER_CIK:
 		si_dump_reg(f, R_3F0_IB_BASE_LO, ib[1], ~0);
 		si_dump_reg(f, R_3F1_IB_BASE_HI, ib[2], ~0);
 		si_dump_reg(f, R_3F2_CONTROL, ib[3], ~0);
 		break;
+	case PKT3_CLEAR_STATE:
+	case PKT3_INCREMENT_DE_COUNTER:
+	case PKT3_PFP_SYNC_ME:
+		break;
 	case PKT3_NOP:
 		if (ib[0] == 0xffff1000) {
 			count = -1; /* One dword NOP. */
 			break;
 		} else if (count == 0 && SI_IS_TRACE_POINT(ib[1])) {
 			unsigned packet_id = SI_GET_TRACE_POINT_ID(ib[1]);
 
 			print_spaces(f, INDENT_PKT);
 			fprintf(f, COLOR_RED "Trace point ID: %u\n", packet_id);
 
-- 
2.7.4



More information about the mesa-dev mailing list