From f7ce548d788f76682d571fae4366ef7436d1049c Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Wed, 17 Sep 2025 08:22:39 -0700 Subject: [PATCH] freedreno/decode/crashdec: Limit snapshot BO size Internal tooling has a 100MB limit. But ascii85 can do a good job of compressing BOs that have lots of zero's, so the resulting snapshot file can be much bigger than the devcoredump. Avoid this by skipping BOs that are large enough to probably not be cs/shader/descriptor. Signed-off-by: Rob Clark Part-of: --- src/freedreno/decode/crashdec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/freedreno/decode/crashdec.c b/src/freedreno/decode/crashdec.c index 945e3713690..e75e2f9fd11 100644 --- a/src/freedreno/decode/crashdec.c +++ b/src/freedreno/decode/crashdec.c @@ -553,7 +553,9 @@ decode_bos(void) dump_hex_ascii(buf, size, 1); add_buffer(iova, size, buf); - snapshot_gpu_object(iova, size, buf); + + if (size <= 0x40000) + snapshot_gpu_object(iova, size, buf); continue; }