panfrost: Keep cached BOs mmap'd
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 19 May 2020 19:06:52 +0000 (15:06 -0400)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 21 May 2020 18:43:31 +0000 (14:43 -0400)
commit794c239a990e08b5a42d42607e9c5e5b0921390c
tree6c4865d9e3ec329867de868597129d1e489f2e01
parent485ec761082ddfd952f80bb96b5fb5a607349b08
panfrost: Keep cached BOs mmap'd

It doesn't make sense to munmap/mmap repeatedly; they're mapped GPU-side
anyway. So just munmap on free, which will happen in low-mem regardless.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5124>
src/panfrost/encoder/pan_bo.c