]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0e1e9db0b34e28821beb76a923968c5351c2ee01
tree945aeb6b78881d4567b1064182e38a9b1227cfb1
parent6cc93e1183738aa183cee683d35f4a05f76dcf1e
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