All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm: document userspace expectations around the Colorspace connector property
@ 2024-02-09 16:53 Xaver Hugl
  2024-02-09 20:36 ` Sebastian Wick
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Xaver Hugl @ 2024-02-09 16:53 UTC (permalink / raw)
  To: dri-devel; +Cc: ville.syrjala, contact, sebastian.wick, Xaver Hugl

Signed-off-by: Xaver Hugl <xaver.hugl@kde.org>
---
 drivers/gpu/drm/drm_connector.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c
index b0516505f7ae..01e13984629b 100644
--- a/drivers/gpu/drm/drm_connector.c
+++ b/drivers/gpu/drm/drm_connector.c
@@ -2158,6 +2158,14 @@ EXPORT_SYMBOL(drm_mode_create_aspect_ratio_property);
  *     one supported. Sink supported colorspaces should be retrieved by
  *     userspace from EDID and driver will not explicitly expose them.
  *
+ *     As userspace can't currently know whether or not the output is using
+ *     RGB or YCC signalling, the driver must translate properties to their
+ *     relevant RGB or YCC counterparts, depending on the actually used
+ *     signalling. Property values that are only valid for either YCC or RGB
+ *     and have no equivalent for the other signalling type must not be
+ *     exposed as supported, unless the driver can guarantee it never uses
+ *     the signalling that doesn't match the property.
+ *
  *     Basically the expectation from userspace is:
  *      - Set up CRTC DEGAMMA/CTM/GAMMA to convert to some sink
  *        colorspace
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-02-19 13:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-09 16:53 [PATCH] drm: document userspace expectations around the Colorspace connector property Xaver Hugl
2024-02-09 20:36 ` Sebastian Wick
2024-02-12  8:46 ` Pekka Paalanen
2024-02-12  9:10 ` Pekka Paalanen
2024-02-12 16:50   ` Sebastian Wick
2024-02-13  8:54     ` Pekka Paalanen
2024-02-13  9:26     ` Ville Syrjälä
2024-02-19 13:22       ` Sebastian Wick

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.