[Intel-gfx] [PATCH 11/20] drm/gem: create drm_gem_dumb_destroy
Daniel Vetter
daniel.vetter at ffwll.ch
Thu Aug 15 00:02:40 CEST 2013
All the gem based kms drivers really want the same function to
destroy a dumb framebuffer backing storage object.
So give it to them and roll it out in all drivers.
This still leaves the option open for kms drivers which don't use GEM
for backing storage, but it does decently simplify matters for gem
drivers.
Cc: Inki Dae <inki.dae at samsung.com>
Cc: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
Cc: Intel Graphics Development <intel-gfx at lists.freedesktop.org>
Cc: Ben Skeggs <skeggsb at gmail.com>
Cc: Rob Clark <robdclark at gmail.com>
Cc: Alex Deucher <alexdeucher at gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
Reviewed-by: Rob Clark <robdclark at gmail.com>
Acked-by: Inki Dae <inki.dae at samsung.com>
Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
include/drm/drmP.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 0eb4a37..f08bbcf 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -1619,6 +1619,9 @@ int drm_gem_handle_create(struct drm_file *file_priv,
u32 *handlep);
int drm_gem_handle_delete(struct drm_file *filp, u32 handle);
+int drm_gem_dumb_destroy(struct drm_file *file,
+ struct drm_device *dev,
+ uint32_t handle);
void drm_gem_free_mmap_offset(struct drm_gem_object *obj);
int drm_gem_create_mmap_offset(struct drm_gem_object *obj);
--
1.8.3.2
More information about the Intel-gfx
mailing list