Capture COMPUTE shaders in ring decoding as well.
PATCH 1/1 Capture COMPUTE shaders in ring decoding as well.
Signed-off-by Tom St Denis <[email protected]>
--- src/lib/ring_decode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
src/lib/ring_decode.c +2 -2
@@ -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