freedreno/log: better decoding for multiple chunks per batch
authorRob Clark <robdclark@chromium.org>
Fri, 10 Apr 2020 15:27:54 +0000 (08:27 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 10 Apr 2020 19:29:54 +0000 (19:29 +0000)
commit7aa6720ba4ea8dc107c7b363bcb2a1811a25dc71
tree99ef7b41f1ab1d6625286a3a8f14c503f7f9249d
parent7aa55f5acbcf7fa472805fd2c155a5cc0b9cb2a8
freedreno/log: better decoding for multiple chunks per batch

For larger render targets or smaller GMEM size, we could end up needing
multiple chunks of tracepoints per batch.  But we still want to decode
the traces as single batch.  So we need a bit of a state across
process_chunk() calls to accumulate timestamp information.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4510>
src/gallium/drivers/freedreno/freedreno_log.c