hal: deal with auth drm_fd 84/253984/2
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 16 Feb 2021 10:41:25 +0000 (19:41 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 22 Feb 2021 03:46:16 +0000 (03:46 +0000)
commitaf367aeb130d7f2dc68c5e32a1b5ce1557b40ea5
tree1f781913a024203bd10cfcceb58366180ae584d7
parent9af7cd587eb9fbf46101986d18d47925bc93fc06
hal: deal with auth drm_fd

tbm backend must have the authenticated drm_fd when it has a drm_device.
If master_fd set from libtdm exists, libtbm sets the authencated drm_fd to the backend.
If there is no master_fd, libtbm get the authenticated drm_fd from the process(display server)
which has a master fd.

Change-Id: I0111976a26dc1f26191439517e5d8869a8955a36
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
src/tbm_bufmgr.c
src/tbm_bufmgr_int.h
src/tbm_drm_helper_server.c