mmap the dmabuf with the gem memory at every tbm_bo. 49/286349/1
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 4 Jan 2023 08:29:53 +0000 (17:29 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Wed, 4 Jan 2023 08:32:04 +0000 (17:32 +0900)
commitf01ed42f6366a9715fc51816a5ed0c690ae4f8ad
tree2423a91a8d201b185b88d556edf2f8dd03361a26
parentbe94bd6890ebf40662945734e51e69dfb4c064ac
mmap the dmabuf with the gem memory at every tbm_bo.

The vc4 backend has to mmap the dmabuf with the gem handle.
Otherwise, when this dmabuf has been exported to another process,
the process cannot call DRM_IOCTL_MODE_MAP_DUMB with the gem handle
which is imported by dmabuf fd.

Change-Id: Ia96340e72a15e5abe1bf2a72cb6230990cfba32c
src/tbm_backend_vc4.c