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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user