From a7c26bfc0ce9d12def9f05a84c19f51f3d311aaa Mon Sep 17 00:00:00 2001 From: Nicolai Hähnle Date: Fri, 6 May 2016 22:04:31 -0500 Subject: radeonsi/sid: add packet definitions for IB chaining MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While we're at it, add packet printing in si_debug. Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_debug.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gallium/drivers/radeonsi/si_debug.c') diff --git a/src/gallium/drivers/radeonsi/si_debug.c b/src/gallium/drivers/radeonsi/si_debug.c index 5783056a049..b551c725752 100644 --- a/src/gallium/drivers/radeonsi/si_debug.c +++ b/src/gallium/drivers/radeonsi/si_debug.c @@ -356,6 +356,13 @@ 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_NOP: if (ib[0] == 0xffff1000) { count = -1; /* One dword NOP. */ -- cgit v1.2.3