OSDN Git Service

drm/doc: introduce new section for standard plane properties
authorSimon Ser <contact@emersion.fr>
Thu, 17 Dec 2020 11:32:13 +0000 (12:32 +0100)
committerSimon Ser <contact@emersion.fr>
Thu, 17 Dec 2020 15:56:40 +0000 (16:56 +0100)
Introduce a new "Standard Plane Properties" section for properties
defined in drm_plane.c. Move the mis-placed IN_FORMATS docs there.

Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Daniel Vetter <daniel@ffwll.ch>
Cc: Pekka Paalanen <ppaalanen@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201217113220.102271-3-contact@emersion.fr
Documentation/gpu/drm-kms.rst
drivers/gpu/drm/drm_blend.c
drivers/gpu/drm/drm_plane.c

index 7a05601..87e5023 100644 (file)
@@ -493,6 +493,12 @@ Standard CRTC Properties
 .. kernel-doc:: drivers/gpu/drm/drm_crtc.c
    :doc: standard CRTC properties
 
+Standard Plane Properties
+-------------------------
+
+.. kernel-doc:: drivers/gpu/drm/drm_plane.c
+   :doc: standard plane properties
+
 Plane Composition Properties
 ----------------------------
 
index 5c2141e..26e2f2f 100644 (file)
  *              plane does not expose the "alpha" property, then this is
  *              assumed to be 1.0
  *
- * IN_FORMATS:
- *     Blob property which contains the set of buffer format and modifier
- *     pairs supported by this plane. The blob is a drm_format_modifier_blob
- *     struct. Without this property the plane doesn't support buffers with
- *     modifiers. Userspace cannot change this property.
- *
  * Note that all the property extensions described here apply either to the
  * plane or the CRTC (e.g. for the background color, which currently is not
  * exposed and assumed to be black).
index 49b0a8b..4c1a45a 100644 (file)
  * userspace too much.
  */
 
+/**
+ * DOC: standard plane properties
+ *
+ * DRM planes have a few standardized properties:
+ *
+ * IN_FORMATS:
+ *     Blob property which contains the set of buffer format and modifier
+ *     pairs supported by this plane. The blob is a drm_format_modifier_blob
+ *     struct. Without this property the plane doesn't support buffers with
+ *     modifiers. Userspace cannot change this property.
+ */
+
 static unsigned int drm_num_planes(struct drm_device *dev)
 {
        unsigned int num = 0;