aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>2016-11-07 05:03:33 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-11-08 05:30:20 -0500
commit3835b46e5535d9ad534776bc93670db097682556 (patch)
treec17689c486d075dcc455d12261867d88638c5221
parent5d586983d6c92e255496536bb57a8f2e36509b7c (diff)
drm/plane: add inline doc for struct drm_plane
Some of the members of struct drm_plane had extra comments so for these add inline kernel comment to consolidate all documentation in one place. Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> [danvet: Bikeshed a bit more to have real paragraphs with real sentences.] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1478513013-3221-4-git-send-email-gustavo@padovan.org
-rw-r--r--include/drm/drm_plane.h58
1 files changed, 44 insertions, 14 deletions
diff --git a/include/drm/drm_plane.h b/include/drm/drm_plane.h
index 68f6d221a3da..29a175754aee 100644
--- a/include/drm/drm_plane.h
+++ b/include/drm/drm_plane.h
@@ -32,11 +32,6 @@ struct drm_crtc;
32/** 32/**
33 * struct drm_plane_state - mutable plane state 33 * struct drm_plane_state - mutable plane state
34 * @plane: backpointer to the plane 34 * @plane: backpointer to the plane
35 * @crtc: currently bound CRTC, NULL if disabled
36 * @fb: currently bound framebuffer
37 * @fence: optional fence to wait for before scanning out @fb
38 * @crtc_x: left position of visible portion of plane on crtc
39 * @crtc_y: upper position of visible portion of plane on crtc
40 * @crtc_w: width of visible portion of plane on crtc 35 * @crtc_w: width of visible portion of plane on crtc
41 * @crtc_h: height of visible portion of plane on crtc 36 * @crtc_h: height of visible portion of plane on crtc
42 * @src_x: left position of visible portion of plane within 37 * @src_x: left position of visible portion of plane within
@@ -51,18 +46,51 @@ struct drm_crtc;
51 * where N is the number of active planes for given crtc 46 * where N is the number of active planes for given crtc
52 * @src: clipped source coordinates of the plane (in 16.16) 47 * @src: clipped source coordinates of the plane (in 16.16)
53 * @dst: clipped destination coordinates of the plane 48 * @dst: clipped destination coordinates of the plane
54 * @visible: visibility of the plane
55 * @state: backpointer to global drm_atomic_state 49 * @state: backpointer to global drm_atomic_state
56 */ 50 */
57struct drm_plane_state { 51struct drm_plane_state {
58 struct drm_plane *plane; 52 struct drm_plane *plane;
59 53
60 struct drm_crtc *crtc; /* do not write directly, use drm_atomic_set_crtc_for_plane() */ 54 /**
61 struct drm_framebuffer *fb; /* do not write directly, use drm_atomic_set_fb_for_plane() */ 55 * @crtc:
62 struct dma_fence *fence; /* do not write directly, use drm_atomic_set_fence_for_plane() */ 56 *
57 * Currently bound CRTC, NULL if disabled. Do not this write directly,
58 * use drm_atomic_set_crtc_for_plane()
59 */
60 struct drm_crtc *crtc;
61
62 /**
63 * @fb:
64 *
65 * Currently bound framebuffer. Do not write this directly, use
66 * drm_atomic_set_fb_for_plane()
67 */
68 struct drm_framebuffer *fb;
69
70 /**
71 * @fence:
72 *
73 * Optional fence to wait for before scanning out @fb. Do not write this
74 * directly, use drm_atomic_set_fence_for_plane()
75 */
76 struct dma_fence *fence;
77
78 /**
79 * @crtc_x:
80 *
81 * Left position of visible portion of plane on crtc, signed dest
82 * location allows it to be partially off screen.
83 */
84
85 int32_t crtc_x;
86 /**
87 * @crtc_y:
88 *
89 * Upper position of visible portion of plane on crtc, signed dest
90 * location allows it to be partially off screen.
91 */
92 int32_t crtc_y;
63 93
64 /* Signed dest location allows it to be partially off screen */
65 int32_t crtc_x, crtc_y;
66 uint32_t crtc_w, crtc_h; 94 uint32_t crtc_w, crtc_h;
67 95
68 /* Source values are 16.16 fixed point */ 96 /* Source values are 16.16 fixed point */
@@ -79,9 +107,11 @@ struct drm_plane_state {
79 /* Clipped coordinates */ 107 /* Clipped coordinates */
80 struct drm_rect src, dst; 108 struct drm_rect src, dst;
81 109
82 /* 110 /**
83 * Is the plane actually visible? Can be false even 111 * @visible:
84 * if fb!=NULL and crtc!=NULL, due to clipping. 112 *
113 * Visibility of the plane. This can be false even if fb!=NULL and
114 * crtc!=NULL, due to clipping.
85 */ 115 */
86 bool visible; 116 bool visible;
87 117