freedreno: add logging infrastructure
authorRob Clark <robdclark@chromium.org>
Sat, 28 Mar 2020 16:57:35 +0000 (09:57 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 30 Mar 2020 23:20:12 +0000 (23:20 +0000)
commita0ca1462f31747d028abe9106309f6c95c3daabf
tree93a93143dae4da4c20d98cb22e2c3e0093ed28dd
parentffd32266780a83695ae5dd8d36b73fe970cfe4dc
freedreno: add logging infrastructure

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

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4366>
12 files changed:
src/gallium/drivers/freedreno/Makefile.sources
src/gallium/drivers/freedreno/freedreno_batch.c
src/gallium/drivers/freedreno/freedreno_batch.h
src/gallium/drivers/freedreno/freedreno_context.c
src/gallium/drivers/freedreno/freedreno_context.h
src/gallium/drivers/freedreno/freedreno_gmem.c
src/gallium/drivers/freedreno/freedreno_log.c [new file with mode: 0644]
src/gallium/drivers/freedreno/freedreno_log.h [new file with mode: 0644]
src/gallium/drivers/freedreno/freedreno_screen.c
src/gallium/drivers/freedreno/freedreno_util.h
src/gallium/drivers/freedreno/log-parser.py [new file with mode: 0755]
src/gallium/drivers/freedreno/meson.build