backend-drm: Set default plane color space and range hints
- Feb 04, 2025
-
-
As most SDR video content uses that instead of BT.601. Crucially, most KMS drivers use BT.709 as the default for the COLOR_ENCODING value, making it the effective default for hardware planes we used before we started setting an explicit value. Signed-off-by:
Robert Mader <robert.mader@collabora.com>
-
In order to be consistent with our internal YUV shader and KMS plane output. Note that the extension requires the hints to be ignored for RGB formats. Note that the attribs array previously was slightly larger than the maximum number of attributes required. Signed-off-by:
Robert Mader <robert.mader@collabora.com>
-
Upstream KMS drivers currently default to either ITU-R BT.601 YCbCr or ITU-R BT.709 YCbCr. Ensure consistent behavior by setting a default. We use BT.601 as that is what our fallback shader uses at the moment. Signed-off-by:
Robert Mader <robert.mader@collabora.com>
-
Which will be used in later commits. For now using the sampler_type works for all existing formats, however should we ever want to use it for RGB formats this functions needs to get adopted. Signed-off-by:
Robert Mader <robert.mader@collabora.com>
-