aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-06-08 03:33:27 -0400
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-06-20 04:07:14 -0400
commit416c39000b3bf0b00b0d68a990dd69dd96440ec0 (patch)
treeff4343f65499163487e9de9020f60a1200e4ea24
parent16ad3b2ce8dd5840c7661990476c3693569dab5a (diff)
drm/shmobile: Add DRM PRIME support
Just use the GEM CMA DRM PRIME helpers. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
-rw-r--r--drivers/gpu/drm/shmobile/shmob_drm_drv.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/shmobile/shmob_drm_drv.c b/drivers/gpu/drm/shmobile/shmob_drm_drv.c
index 29d15e3fe144..edc10181f551 100644
--- a/drivers/gpu/drm/shmobile/shmob_drm_drv.c
+++ b/drivers/gpu/drm/shmobile/shmob_drm_drv.c
@@ -263,7 +263,8 @@ static const struct file_operations shmob_drm_fops = {
263}; 263};
264 264
265static struct drm_driver shmob_drm_driver = { 265static struct drm_driver shmob_drm_driver = {
266 .driver_features = DRIVER_HAVE_IRQ | DRIVER_GEM | DRIVER_MODESET, 266 .driver_features = DRIVER_HAVE_IRQ | DRIVER_GEM | DRIVER_MODESET
267 | DRIVER_PRIME,
267 .load = shmob_drm_load, 268 .load = shmob_drm_load,
268 .unload = shmob_drm_unload, 269 .unload = shmob_drm_unload,
269 .preclose = shmob_drm_preclose, 270 .preclose = shmob_drm_preclose,
@@ -273,6 +274,10 @@ static struct drm_driver shmob_drm_driver = {
273 .disable_vblank = shmob_drm_disable_vblank, 274 .disable_vblank = shmob_drm_disable_vblank,
274 .gem_free_object = drm_gem_cma_free_object, 275 .gem_free_object = drm_gem_cma_free_object,
275 .gem_vm_ops = &drm_gem_cma_vm_ops, 276 .gem_vm_ops = &drm_gem_cma_vm_ops,
277 .prime_handle_to_fd = drm_gem_prime_handle_to_fd,
278 .prime_fd_to_handle = drm_gem_prime_fd_to_handle,
279 .gem_prime_import = drm_gem_cma_dmabuf_import,
280 .gem_prime_export = drm_gem_cma_dmabuf_export,
276 .dumb_create = drm_gem_cma_dumb_create, 281 .dumb_create = drm_gem_cma_dumb_create,
277 .dumb_map_offset = drm_gem_cma_dumb_map_offset, 282 .dumb_map_offset = drm_gem_cma_dumb_map_offset,
278 .dumb_destroy = drm_gem_cma_dumb_destroy, 283 .dumb_destroy = drm_gem_cma_dumb_destroy,