drm: add gem import interface to support drm-hwc [1/1]
authorAo Xu <ao.xu@amlogic.com>
Mon, 19 Aug 2019 03:04:39 +0000 (11:04 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Thu, 22 Aug 2019 09:18:50 +0000 (02:18 -0700)
commit1f2c3eb99dcb48841fe3e2235736c55ad68a39fc
tree42868405ca6649b8d872b91d758fca959eba304f
parentecb30a523105c4e17c1e4b7b7f96cabccda9de77
drm: add gem import interface to support drm-hwc [1/1]

PD#SWPL-11320

Problem:
current gem driver have not implementted the import interface.
For drm-hwc in android, gralloc allocate the dumb buffer, it
should use the import interface to import the allocated buffer
to the drm driver.

Solution:
implement the gem import interface

Verify:
g12a-u200

Change-Id: I32f7705fd67853a1000875b2af69fcaf700330e1
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
drivers/amlogic/drm/meson_drv.c
drivers/amlogic/drm/meson_gem.c
drivers/amlogic/drm/meson_gem.h