diff options
author | Daniel Thompson <daniel.thompson@linaro.org> | 2014-11-12 11:38:14 +0000 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2014-11-16 14:22:43 -0500 |
commit | 77a147e742afe33a612d93d61ba153df668de428 (patch) | |
tree | 319fa14ec9f2d6b78fa0ce061d3af7bd99e6ad76 /drivers/gpu/drm/msm/msm_drv.c | |
parent | 067fef372c7356f64e4d307218df0fae49f9c88e (diff) | |
download | op-kernel-dev-77a147e742afe33a612d93d61ba153df668de428.zip op-kernel-dev-77a147e742afe33a612d93d61ba153df668de428.tar.gz |
drm/msm: Allow exported dma-bufs to be mapped
Currently msm does not implement gem_prime_mmap. Without this it is not
possible to draw onto a dma-buf from userspace (making its very hard to
implement the Android rendering model).
Fixing this is just a matter of adding a little boilerplate.
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_drv.c')
-rw-r--r-- | drivers/gpu/drm/msm/msm_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index b67ef59..5717d4e 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -832,6 +832,7 @@ static struct drm_driver msm_driver = { .gem_prime_import_sg_table = msm_gem_prime_import_sg_table, .gem_prime_vmap = msm_gem_prime_vmap, .gem_prime_vunmap = msm_gem_prime_vunmap, + .gem_prime_mmap = msm_gem_prime_mmap, #ifdef CONFIG_DEBUG_FS .debugfs_init = msm_debugfs_init, .debugfs_cleanup = msm_debugfs_cleanup, |