drm/gem: add drm_gem_create_mmap_offset_size()
authorRob Clark <robdclark@gmail.com>
Wed, 7 Aug 2013 17:41:23 +0000 (13:41 -0400)
committerDave Airlie <airlied@redhat.com>
Mon, 19 Aug 2013 00:34:43 +0000 (10:34 +1000)
commit367bbd49202dd256dce1217c2f7cd0d5d1916f7b
tree945aeb6b78881d4567b1064182e38a9b1227cfb1
parent5833bd2fe1c7d9e2650a11a8785b848bbd0d0188
drm/gem: add drm_gem_create_mmap_offset_size()

Variant of drm_gem_create_mmap_offset() which doesn't make the
assumption that virtual size and physical size (obj->size) are the same.
This is needed in omapdrm to deal with tiled buffers.  And lets us get
rid of a duplicated and slightly modified version of
drm_gem_create_mmap_offset() in omapdrm.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_gem.c
include/drm/drmP.h