mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 17:10:11 +01:00
freedreno/a6xx: fix primitive counters debug output
Each counter spans two regs: LO and HI Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8228>
This commit is contained in:
parent
4ce7d2138a
commit
049f56fc4e
1 changed files with 9 additions and 7 deletions
|
|
@ -300,21 +300,23 @@ log_counters(struct fd6_primitives_sample *ps)
|
|||
};
|
||||
|
||||
printf(" counter\t\tstart\t\t\tstop\t\t\tdiff\n");
|
||||
for (int i = 0; i < counter_count; i++) {
|
||||
printf(" RBBM_PRIMCTR_%d\t0x%016llx\t0x%016llx\t%lld\t%s\n",
|
||||
i + (counter_base - REG_A6XX_RBBM_PRIMCTR_0_LO) / 2,
|
||||
ps->prim_start[i], ps->prim_stop[i], ps->prim_stop[i] - ps->prim_start[i], labels[i]);
|
||||
for (int i = 0; i < ARRAY_SIZE(labels); i++) {
|
||||
int register_idx = i + (counter_base - REG_A6XX_RBBM_PRIMCTR_0_LO) / 2;
|
||||
printf(" RBBM_PRIMCTR_%d\t0x%016"PRIx64"\t0x%016"PRIx64"\t%"PRIi64"\t%s\n",
|
||||
register_idx,
|
||||
ps->prim_start[i], ps->prim_stop[i], ps->prim_stop[i] - ps->prim_start[i],
|
||||
labels[register_idx]);
|
||||
}
|
||||
|
||||
printf(" so counts\n");
|
||||
for (int i = 0; i < ARRAY_SIZE(ps->start); i++) {
|
||||
printf(" CHANNEL %d emitted\t0x%016llx\t0x%016llx\t%lld\n",
|
||||
printf(" CHANNEL %d emitted\t0x%016"PRIx64"\t0x%016"PRIx64"\t%"PRIi64"\n",
|
||||
i, ps->start[i].generated, ps->stop[i].generated, ps->stop[i].generated - ps->start[i].generated);
|
||||
printf(" CHANNEL %d generated\t0x%016llx\t0x%016llx\t%lld\n",
|
||||
printf(" CHANNEL %d generated\t0x%016"PRIx64"\t0x%016"PRIx64"\t%"PRIi64"\n",
|
||||
i, ps->start[i].emitted, ps->stop[i].emitted, ps->stop[i].emitted - ps->start[i].emitted);
|
||||
}
|
||||
|
||||
printf("generated %lld, emitted %lld\n", ps->result.generated, ps->result.emitted);
|
||||
printf("generated %"PRIu64", emitted %"PRIu64"\n", ps->result.generated, ps->result.emitted);
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue