[PATCH v5 06/13] drm/connector: Allow drivers to pass list of supported colorspaces

Simon Ser contact at emersion.fr
Wed Jun 7 09:42:09 UTC 2023


On Tuesday, June 6th, 2023 at 22:26, Harry Wentland <harry.wentland at amd.com> wrote:

> -int drm_mode_create_hdmi_colorspace_property(struct drm_connector *connector)
> +int drm_mode_create_hdmi_colorspace_property(struct drm_connector *connector,
> +					     u32 supported_colorspaces)
>  {
> -	return drm_mode_create_colorspace_property(connector, hdmi_colorspaces);
> +	u32 colorspaces = supported_colorspaces & hdmi_colorspaces;

This creates a potentially weird situation where the driver passes a
non-0 supported_colorspaces, but the intersection with hdmi_colorspaces
ends up being empty, and all colorspaces end up being advertised.


More information about the dri-devel mailing list