]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vram-helpers: Add helpers for prepare_fb() and cleanup_fb()
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 24 Oct 2019 08:14:01 +0000 (10:14 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 24 Oct 2019 14:12:11 +0000 (16:12 +0200)
commit001e42e997004f2531a089237a8c2e7320660c27
treeb67685c07ab8f110db88f41b54909b3f406ccb80
parenta695cf5cb6eca3070d62d8cb7baa327a6d85c4b7
drm/vram-helpers: Add helpers for prepare_fb() and cleanup_fb()

The new helpers pin and unpin a framebuffer's GEM VRAM objects during
plane updates. This should be sufficient for most drivers' implementation
of prepare_fb() and cleanup_fb().

v2:
* provide helpers for struct drm_simple_display_pipe_funcs
* rename plane-helper funcs

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