diff options
author | Marek Vasut <marex@denx.de> | 2016-11-14 11:07:31 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-11-14 12:43:58 +0100 |
commit | 14d7f96f90fb65c2ca0e0ac7df237e06ff001c29 (patch) | |
tree | 87f8c0d593f6e349a00307ba7f1df5c298a46289 /include/drm/drm_fb_cma_helper.h | |
parent | 3da6c2f3b730cea04938e612e7f26dfbf2db9641 (diff) | |
download | linux-14d7f96f90fb65c2ca0e0ac7df237e06ff001c29.tar.gz linux-14d7f96f90fb65c2ca0e0ac7df237e06ff001c29.tar.bz2 linux-14d7f96f90fb65c2ca0e0ac7df237e06ff001c29.zip |
drm/fb_cma_helper: Add drm_fb_cma_prepare_fb() helper
Add new drm_fb_cma_prepare_fb() helper function extracted from the
imx-drm driver. This function checks if the plane has DMABUF attached
to it, extracts the exclusive fence from it and attaches it to the
plane state for the atomic helper to wait on it.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161114100732.3446-1-marex@denx.de
Diffstat (limited to 'include/drm/drm_fb_cma_helper.h')
-rw-r--r-- | include/drm/drm_fb_cma_helper.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drm_fb_cma_helper.h b/include/drm/drm_fb_cma_helper.h index f313211f8ed5..cc82c73b07fc 100644 --- a/include/drm/drm_fb_cma_helper.h +++ b/include/drm/drm_fb_cma_helper.h @@ -41,6 +41,9 @@ struct drm_framebuffer *drm_fb_cma_create(struct drm_device *dev, struct drm_gem_cma_object *drm_fb_cma_get_gem_obj(struct drm_framebuffer *fb, unsigned int plane); +int drm_fb_cma_prepare_fb(struct drm_plane *plane, + struct drm_plane_state *state); + #ifdef CONFIG_DEBUG_FS struct seq_file; |