]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
drm/fb_cma_helper: Add drm_fb_cma_prepare_fb() helper
authorMarek Vasut <marex@denx.de>
Mon, 14 Nov 2016 10:07:31 +0000 (11:07 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 14 Nov 2016 11:43:58 +0000 (12:43 +0100)
commit14d7f96f90fb65c2ca0e0ac7df237e06ff001c29
tree87f8c0d593f6e349a00307ba7f1df5c298a46289
parent3da6c2f3b730cea04938e612e7f26dfbf2db9641
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
drivers/gpu/drm/drm_fb_cma_helper.c
include/drm/drm_fb_cma_helper.h