asahi/decode: Only dump mapped allocations
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sat, 10 Jul 2021 15:04:45 +0000 (11:04 -0400)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sat, 10 Jul 2021 15:04:45 +0000 (11:04 -0400)
commit9b6ca87672be842a21dfe33863c93a57b981f4e3
tree2cb547898331a21ddf2b59ae4ca2c80311429629
parentea7892a74c873021d1c8d5d26d6b6af879a94c7c
asahi/decode: Only dump mapped allocations

This matches the hardware's view of memory and helps catch spurious reads. (One
symptom of messing this up -- besides broken rendering -- is a kernel warning
about a "bogus texture handle 0".)

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11815>
src/asahi/lib/decode.c
src/asahi/lib/decode.h