Skip to contentSkip to conversation

Capture COMPUTE shaders in ring decoding as well.

PATCH New Tom St Denis 1 participant 1 message Apr 27, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Capture COMPUTE shaders in ring decoding as well.

---
 src/lib/ring_decode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
src/lib/ring_decode.c +2 -2
index 42265e0a74c9..7e3218a46145 100644
@@ -774,9 +774,9 @@ static void print_decode_pm4_pkt3(struct umr_asic *asic, struct umr_ring_decoder
 					{
 						char *tmp = umr_reg_name(asic, decoder->pm4.next_write_mem.addr_lo);
 						printf("%s <= %s0x%08lx%s", tmp, YELLOW, (unsigned long)ib, RST);
-						if (strstr(tmp, "SPI_SHADER_PGM_LO_")) {
+						if (strstr(tmp, "SPI_SHADER_PGM_LO_") || strstr(tmp, "COMPUTE_PGM_LO")) {
 							decoder->pm4.next_ib_state.ib_addr_lo = ib;
-						} else if (strstr(tmp, "SPI_SHADER_PGM_HI_")) {
+						} else if (strstr(tmp, "SPI_SHADER_PGM_HI_") || strstr(tmp, "COMPUTE_PGM_HI")) {
 							decoder->pm4.next_ib_state.ib_addr_hi = ib;
 							decoder->pm4.next_ib_state.ib_vmid = decoder->next_ib_info.vmid;
 							add_shader(asic, decoder);
Signature · 6 lines
2.14.3

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx