pvr: Unmap mapped memory on free
authorMatt Coster <matt.coster@imgtec.com>
Fri, 28 Apr 2023 14:00:21 +0000 (15:00 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 2 May 2023 09:36:11 +0000 (09:36 +0000)
commit11b1a37553a9339b358ddae99df38160c4cc2252
tree8e586fc705ccdb176517c498ce2a7629a647c757
parent926ddc319cdfddd8acae546a06a4400e070685ca
pvr: Unmap mapped memory on free

From the Vulkan spec (ยง11.2.13. Freeing Device Memory):
  If a memory object is mapped at the time it is freed, it is implicitly
  unmapped.

Signed-off-by: Matt Coster <matt.coster@imgtec.com>
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22762>
src/imagination/vulkan/pvr_device.c