aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_plane_helper.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-11-06 14:53:29 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-11-06 15:08:32 -0500
commit3150c7d0c686ffee9e414ccce705c34ebcbf4e30 (patch)
tree7158417e3756a9a04c766a82c0861b9d04d30e24 /drivers/gpu/drm/drm_plane_helper.c
parentd461701c551efe92893b31d05906d51e2f1f8244 (diff)
drm: Docbook integration and over sections for all the new helpers
In all cases the text requires that new drivers are converted to the atomic interfaces. v2: Add overview for state handling. v3: Review from Sean: Some spelling fixes and drop the misguided hunk to remove rgba8888 from the plane helpers compat list. Cc: Sean Paul <seanpaul@chromium.org> Reviewed-by: Sean Paul <seanpaul@chromium.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/drm_plane_helper.c')
-rw-r--r--drivers/gpu/drm/drm_plane_helper.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_plane_helper.c b/drivers/gpu/drm/drm_plane_helper.c
index a5a295872fbb..fa56bb5da6c3 100644
--- a/drivers/gpu/drm/drm_plane_helper.c
+++ b/drivers/gpu/drm/drm_plane_helper.c
@@ -31,6 +31,32 @@
31 31
32#define SUBPIXEL_MASK 0xffff 32#define SUBPIXEL_MASK 0xffff
33 33
34/**
35 * DOC: overview
36 *
37 * This helper library has two parts. The first part has support to implement
38 * primary plane support on top of the normal CRTC configuration interface.
39 * Since the legacy ->set_config interface ties the primary plane together with
40 * the CRTC state this does not allow userspace to disable the primary plane
41 * itself. To avoid too much duplicated code use
42 * drm_plane_helper_check_update() which can be used to enforce the same
43 * restrictions as primary planes had thus. The default primary plane only
44 * expose XRBG8888 and ARGB8888 as valid pixel formats for the attached
45 * framebuffer.
46 *
47 * Drivers are highly recommended to implement proper support for primary
48 * planes, and newly merged drivers must not rely upon these transitional
49 * helpers.
50 *
51 * The second part also implements transitional helpers which allow drivers to
52 * gradually switch to the atomic helper infrastructure for plane updates. Once
53 * that switch is complete drivers shouldn't use these any longer, instead using
54 * the proper legacy implementations for update and disable plane hooks provided
55 * by the atomic helpers.
56 *
57 * Again drivers are strongly urged to switch to the new interfaces.
58 */
59
34/* 60/*
35 * This is the minimal list of formats that seem to be safe for modeset use 61 * This is the minimal list of formats that seem to be safe for modeset use
36 * with all current DRM drivers. Most hardware can actually support more 62 * with all current DRM drivers. Most hardware can actually support more