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 <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37727>
This commit is contained in:
Rob Clark 2025-09-17 08:22:39 -07:00 committed by Marge Bot
parent 1a8a16f99d
commit f7ce548d78

View file

@ -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;
}