intel/dump_gpu: only write BOs mapped by the driver
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 2 Oct 2019 23:13:32 +0000 (02:13 +0300)
committerMarge Bot <eric+marge@anholt.net>
Fri, 7 Aug 2020 11:27:54 +0000 (11:27 +0000)
commit63c90acc9eba2c7252794b415ad4d5ace6956c4e
tree631e30de52dec02e6982979de848ad5f977c3147
parent54c68498d4c4627a56fd73f8a4becbed3327cad6
intel/dump_gpu: only write BOs mapped by the driver

Track what BOs are mapped by the driver and only write those. We can
safely assume that when not mapped there is no data to save.

v2: Don't forget to return the ret (Rafael)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2201>
src/intel/tools/intel_dump_gpu.c