]> 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)
commit01becb5a914f6760f43982671b7f0f5173413c25
tree1b20d66a9dec77963e2612cd286537ea5ccdfe64
parent4ca072692457e0c620cbd41bb253d2d1040bee18
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