mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-31 02:40:25 +01:00
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:
parent
1a8a16f99d
commit
f7ce548d78
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue