freedreno: add logging infrastructure

Graphics / Mesa 3D Graphics Library / Mesa - Rob Clark [chromium.org] - 30 March 2020 23:20 EDT

Provides a way to log msgs timestamped at the corresponding position in the GPU cmdstream, mostly for the purposes of profiling.

a0ca1462f31 freedreno: add logging infrastructure
src/gallium/drivers/freedreno/Makefile.sources | 2 +
src/gallium/drivers/freedreno/freedreno_batch.c | 4 +
src/gallium/drivers/freedreno/freedreno_batch.h | 2 +
src/gallium/drivers/freedreno/freedreno_context.c | 14 ++
src/gallium/drivers/freedreno/freedreno_context.h | 7 +
src/gallium/drivers/freedreno/freedreno_gmem.c | 2 +
src/gallium/drivers/freedreno/freedreno_log.c | 205 ++++++++++++++++++++++
src/gallium/drivers/freedreno/freedreno_log.h | 65 +++++++
src/gallium/drivers/freedreno/freedreno_screen.c | 2 +-
src/gallium/drivers/freedreno/freedreno_util.h | 2 +-
src/gallium/drivers/freedreno/log-parser.py | 73 ++++++++
src/gallium/drivers/freedreno/meson.build | 2 +
12 files changed, 378 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org


  • Share