Mesa (main): freedreno/crashdec: Decode full RB in verbose mode
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Aug 20 22:22:07 UTC 2021
Module: Mesa
Branch: main
Commit: dbea4bb970a5dc6c5bd420c3e5f5d948205f8add
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dbea4bb970a5dc6c5bd420c3e5f5d948205f8add
Author: Rob Clark <robdclark at chromium.org>
Date: Fri Aug 20 11:13:44 2021 -0700
freedreno/crashdec: Decode full RB in verbose mode
This is useful to get a better view of previous commands in the
ringbuffer.
Signed-off-by: Rob Clark <robdclark at chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12489>
---
src/freedreno/decode/crashdec.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/freedreno/decode/crashdec.c b/src/freedreno/decode/crashdec.c
index 14313ca270a..5e54f7fa060 100644
--- a/src/freedreno/decode/crashdec.c
+++ b/src/freedreno/decode/crashdec.c
@@ -345,6 +345,11 @@ dump_cmdstream(void)
*/
unsigned ringszdw = ringbuffers[id].size >> 2; /* in dwords */
+ if (verbose) {
+ dump_commands(ringbuffers[id].buf, ringszdw, 0);
+ return;
+ }
+
/* helper macro to deal with modulo size math: */
#define mod_add(b, v) ((ringszdw + (int)(b) + (int)(v)) % ringszdw)
More information about the mesa-commit
mailing list