]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vram-helper: Set object function iff they are not provided by driver
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 22 Sep 2020 14:56:59 +0000 (16:56 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 25 Sep 2020 09:21:04 +0000 (11:21 +0200)
commitfc6c7873accb0b61b2e4168eff4c830958120812
tree1b20d66a9dec77963e2612cd286537ea5ccdfe64
parent632737a08782b583e820e033705b174440b42753
drm/vram-helper: Set object function iff they are not provided by driver

Don't override the GEM object functions unconditionally. If the driver
sets the GEM functions, VRAM helpers will not set them. The idea has been
taken from SHMEM helpers.

v2:
* updated the commit message (Sam)
* document the new feature for drm_gem_vram_create()

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200922145700.25413-3-tzimmermann@suse.de
drivers/gpu/drm/drm_gem_vram_helper.c