drm/msm: Allow exported dma-bufs to be mapped
authorDaniel Thompson <daniel.thompson@linaro.org>
Wed, 12 Nov 2014 11:38:14 +0000 (11:38 +0000)
committerRob Clark <robdclark@gmail.com>
Sun, 16 Nov 2014 19:22:43 +0000 (14:22 -0500)
commit77a147e742afe33a612d93d61ba153df668de428
tree319fa14ec9f2d6b78fa0ce061d3af7bd99e6ad76
parent067fef372c7356f64e4d307218df0fae49f9c88e
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>
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/msm/msm_drv.h
drivers/gpu/drm/msm/msm_gem_prime.c