summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom St Denis <tom.stdenis@amd.com>2019-01-15 12:11:14 -0500
committerTom St Denis <tom.stdenis@amd.com>2019-01-15 12:11:14 -0500
commitd17db20f8f22607d4102a71de2655342d2130b80 (patch)
treea63218c025348a3a3726d63b9f3bf0d5802b4042
parent2db025121a5f867def2567c9f19ac3c8f82d1b9d (diff)
only print shaders in --waves if the wave is halted as well
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
-rw-r--r--src/app/print_waves.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/print_waves.c b/src/app/print_waves.c
index 7538347..8717093 100644
--- a/src/app/print_waves.c
+++ b/src/app/print_waves.c
@@ -113,7 +113,7 @@ void umr_print_waves(struct umr_asic *asic)
}
}
}
- if (ring_halted) {
+ if (ring_halted && wd->ws.wave_status.halt) {
pgm_addr = (((uint64_t)wd->ws.pc_hi << 32) | wd->ws.pc_lo) - (NUM_OPCODE_WORDS*4)/2;
umr_vm_disasm(asic, wd->ws.hw_id.vm_id, pgm_addr, (((uint64_t)wd->ws.pc_hi << 32) | wd->ws.pc_lo), NUM_OPCODE_WORDS*4, 0, NULL);
}
@@ -236,7 +236,7 @@ void umr_print_waves(struct umr_asic *asic)
}
}
- if (ring_halted) {
+ if (ring_halted && wd->ws.wave_status.halt) {
printf("\n\nPGM_MEM:");
pgm_addr = (((uint64_t)wd->ws.pc_hi << 32) | wd->ws.pc_lo);
if (stream)