(subset) [PATCH v2 18/22] drm/object: Add default color encoding and range value at reset
Maxime Ripard
maxime at cerno.tech
Fri Feb 25 17:14:48 UTC 2022
On Mon, 21 Feb 2022 10:59:14 +0100, Maxime Ripard wrote:
> From: Dave Stevenson <dave.stevenson at raspberrypi.com>
>
> The drm_plane_create_color_properties() function asks for an initial
> value for the color encoding and range, and will set the associated
> plane state variable with that value if a state is present.
>
> However, that function is usually called at a time where there's no
> state yet. Since the drm_plane_state reset helper doesn't take care of
> reading that value when it's called, it means that in most cases the
> initial value will be 0 (so DRM_COLOR_YCBCR_BT601 and
> DRM_COLOR_YCBCR_LIMITED_RANGE, respectively), or the drivers will have
> to work around it.
>
> [...]
Applied to drm/drm-misc (drm-misc-next).
Thanks!
Maxime
More information about the dri-devel
mailing list