mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
freedreno: Move some driver debug printfs to mesa_logd.
This means the logging will work on Android, and won't get mixed up in application stdout on Linux. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9262>
This commit is contained in:
parent
caf69b5b77
commit
ecf807c900
2 changed files with 15 additions and 15 deletions
|
|
@ -290,28 +290,28 @@ log_counters(struct fd6_primitives_sample *ps)
|
|||
"ras_primitives_in", "x",
|
||||
};
|
||||
|
||||
printf(" counter\t\tstart\t\t\tstop\t\t\tdiff\n");
|
||||
mesa_logd(" counter\t\tstart\t\t\tstop\t\t\tdiff");
|
||||
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",
|
||||
mesa_logd(" RBBM_PRIMCTR_%d\t0x%016" PRIx64 "\t0x%016" PRIx64 "\t%" PRIi64
|
||||
"\t%s",
|
||||
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");
|
||||
mesa_logd(" so counts");
|
||||
for (int i = 0; i < ARRAY_SIZE(ps->start); i++) {
|
||||
printf(" CHANNEL %d emitted\t0x%016" PRIx64 "\t0x%016" PRIx64
|
||||
"\t%" PRIi64 "\n",
|
||||
mesa_logd(" CHANNEL %d emitted\t0x%016" PRIx64 "\t0x%016" PRIx64
|
||||
"\t%" PRIi64,
|
||||
i, ps->start[i].generated, ps->stop[i].generated,
|
||||
ps->stop[i].generated - ps->start[i].generated);
|
||||
printf(" CHANNEL %d generated\t0x%016" PRIx64 "\t0x%016" PRIx64
|
||||
"\t%" PRIi64 "\n",
|
||||
mesa_logd(" CHANNEL %d generated\t0x%016" PRIx64 "\t0x%016" PRIx64
|
||||
"\t%" PRIi64,
|
||||
i, ps->start[i].emitted, ps->stop[i].emitted,
|
||||
ps->stop[i].emitted - ps->start[i].emitted);
|
||||
}
|
||||
|
||||
printf("generated %" PRIu64 ", emitted %" PRIu64 "\n", ps->result.generated,
|
||||
mesa_logd("generated %" PRIu64 ", emitted %" PRIu64, ps->result.generated,
|
||||
ps->result.emitted);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -151,12 +151,12 @@ fd6_vsc_update_sizes(struct fd_batch *batch, const struct pipe_draw_info *info,
|
|||
draw_stream_size_bits(info, batch->num_bins_per_pipe, prim_strm_bits);
|
||||
|
||||
#if 0
|
||||
printf("vsc: prim_strm_bits=%d, draw_strm_bits=%d, nb=%u, ic=%u, c=%u, pc=%u (%s)\n",
|
||||
prim_strm_bits, draw_strm_bits, batch->num_bins_per_pipe,
|
||||
info->instance_count, info->count,
|
||||
(info->count * info->instance_count) /
|
||||
u_vertices_per_prim(info->mode),
|
||||
u_prim_name(info->mode));
|
||||
mesa_logd("vsc: prim_strm_bits=%d, draw_strm_bits=%d, nb=%u, ic=%u, c=%u, pc=%u (%s)",
|
||||
prim_strm_bits, draw_strm_bits, batch->num_bins_per_pipe,
|
||||
info->instance_count, info->count,
|
||||
(info->count * info->instance_count) /
|
||||
u_vertices_per_prim(info->mode),
|
||||
u_prim_name(info->mode));
|
||||
#endif
|
||||
|
||||
batch->prim_strm_bits += prim_strm_bits;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue