drm: Add drm_gem_vram_fill_create_dumb() to create dumb buffers
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 8 May 2019 08:26:14 +0000 (10:26 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 15 May 2019 14:17:05 +0000 (16:17 +0200)
commitfed1eec080b9b23f5a80a0c4f19ae49a2d14c69e
tree1ece0e1428e39383715583ed6f8bb777d0cb81d6
parent737000fd9c7d32dd378733cc4bba17555b241be0
drm: Add drm_gem_vram_fill_create_dumb() to create dumb buffers

The helper function drm_gem_vram_fill_create_dumb() implements most of
struct drm_driver.dumb_create() for GEM-VRAM buffer objects. It's not a
full implementation of the callback, as several driver-specific parameters
are still required.

v4:
* cleanups from checkpatch.pl
v2:
* documentation fixes

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: http://patchwork.freedesktop.org/patch/msgid/20190508082630.15116-5-tzimmermann@suse.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/drm_gem_vram_helper.c
include/drm/drm_gem_vram_helper.h