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)
commit6542ad8918032a4af12b54d94f2822824777933e
treeb67685c07ab8f110db88f41b54909b3f406ccb80
parent606be04724b6003bd00038c43eb9e1ae5e9c0993
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