OSDN Git Service

minigbm: add a default (*bo_unmap) implementation
authorGurchetan Singh <gurchetansingh@chromium.org>
Mon, 18 Sep 2017 22:29:47 +0000 (15:29 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Wed, 27 Sep 2017 03:43:59 +0000 (20:43 -0700)
commitba6bd503a8ac4da5b3f909ded71a3d60451fb372
tree6a93db93c55d0c488b14df3cf0cb6951873bd18b
parent55525f5735014943e8e2e170ef1ed16bfe4956fe
minigbm: add a default (*bo_unmap) implementation

The (*bo_unmap) function is responsible for unmapping the buffer
and cleaning up any data allocated during (*bo_map). Previously,
we called munmap in drv_bo_unmap(), which caused some confusion.
This method is cleaner.

BUG=chromium:764871
TEST=emerge-betty minigbm

Change-Id: I4dc20cd6b15e79bce21d33f03ebc84480c582981
Reviewed-on: https://chromium-review.googlesource.com/671693
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Joe Kniss <djmk@google.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
15 files changed:
amdgpu.c
cirrus.c
drv.c
evdi.c
exynos.c
gma500.c
helpers.c
helpers.h
marvell.c
nouveau.c
radeon.c
udl.c
vc4.c
vgem.c
virtio_gpu.c