Skip to contentSkip to conversation

drm/docs: Explicitly document default CRTC background behavior

PATCH In review Sean Paul 2 participants 3 messages Jan 3, 2023 – Jan 4, 2023

Subsystems (2)
lore
Share & tools
lore

Sean Paul

author
#0 lore raw

PATCH 1/1 drm/docs: Explicitly document default CRTC background behavior

From: Sean Paul <[email protected]>

Add a paragraph explaining that the default behavior for areas which are not covered by planes or where planes are blending with the CRTC background, is black.

This is alluded to in the "pixel blend mode" property docs, but not called out explicitly.

---
 drivers/gpu/drm/drm_plane.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/drm_plane.c +5 -0
index 33357629a7f5..24e7998d1731 100644
@@ -46,6 +46,11 @@
  * properties that specify how the pixels are positioned and blended, like
  * rotation or Z-position. All these properties are stored in &drm_plane_state.
  *
+ * Unless explicitly specified (via CRTC property or otherwise), the active area
+ * of a CRTC will be black by default. This means portions of the active area
+ * which are not covered by a plane will be black, and alpha blending of any
+ * planes with the CRTC background will blend with black at the lowest zpos.
+ *
  * To create a plane, a KMS drivers allocates and zeroes an instances of
  * &struct drm_plane (possibly as part of a larger structure) and registers it
  * with a call to drm_universal_plane_init().
Signature · 1 line
Sean Paul, Software Engineer, Google / Chromium OS
author
#2 lore raw
Quoted 3 lines · Simon Ser

Nice!

Thanks for the review, Simon! Applied to drm-misc-next.

Signature · 1 line
Sean Paul, Software Engineer, Google / Chromium OS