diff options
author | Alan Cox <alan@linux.intel.com> | 2011-06-07 14:17:51 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-07-25 12:07:15 +0100 |
commit | 62cb70118c4efabb3c0a6f962168ddcad4344eef (patch) | |
tree | 68c8877c9fd761435082b84ae53c579e2a79fb93 /include/drm/drmP.h | |
parent | 04fee895ef98ffbb91a941b53a92d6949bb6d1c4 (diff) | |
download | op-kernel-dev-62cb70118c4efabb3c0a6f962168ddcad4344eef.zip op-kernel-dev-62cb70118c4efabb3c0a6f962168ddcad4344eef.tar.gz |
drm/gem: add support for private objects
These small changes should allow GEM to be used with non shmem objects as
well as shmem objects. In the GMA500 case it allows the base framebuffer to
appear as a GEM object and thus acquire a handle and work with KMS.
For i915 it ought to be trivial to get back the wasted memory but putting the
system fb back into stolen RAM and in general I can imagine it allowing the
use of GEM and thus KMS with all the older cards that have their framebuffer
firmly placed in video RAM.
Signed-off-by: Alan Cox <alan@linux.intel.com>
Tested-by: Rob Clark <rob@ti.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r-- | include/drm/drmP.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index d9c8c6c..9b7c2bb 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -1541,6 +1541,8 @@ struct drm_gem_object *drm_gem_object_alloc(struct drm_device *dev, size_t size); int drm_gem_object_init(struct drm_device *dev, struct drm_gem_object *obj, size_t size); +int drm_gem_private_object_init(struct drm_device *dev, + struct drm_gem_object *obj, size_t size); void drm_gem_object_handle_free(struct drm_gem_object *obj); void drm_gem_vm_open(struct vm_area_struct *vma); void drm_gem_vm_close(struct vm_area_struct *vma); |