intel/dump_gpu: further track mapping of BOs
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 3 Oct 2019 08:05:45 +0000 (11:05 +0300)
committerMarge Bot <eric+marge@anholt.net>
Fri, 7 Aug 2020 11:27:54 +0000 (11:27 +0000)
commitc4bfa6dfbb15e34171f31854c04cb8abcfdba01b
treeb8e586031a1ec0d7724ec77ec658add44fa9a9de
parent63c90acc9eba2c7252794b415ad4d5ace6956c4e
intel/dump_gpu: further track mapping of BOs

We can go further in tracking what BOs are written to by the driver by
tracking when a buffer in unmapped. A BO could be mmap, written, unmap
and never be written to again. In such case we can just write the BO's
content on the first exec buf after unmap and never write it again.

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