56d5db247a
We want to plug this library into the hypervisor, but there we don't have all GPU memory already mapped in our address space. Refactor the GPU mem read function to always allocate local buffers and copy in the data there. Signed-off-by: Asahi Lina <lina@asahilina.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24258>