diff options
author | Maxime Ripard <maxime@cerno.tech> | 2021-04-30 11:44:48 +0200 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2021-05-07 17:13:09 +0200 |
commit | 72921cdf8ac248c904e3883418d2f74f45028222 (patch) | |
tree | bb5fcfbe81c0031cc498fd72d84437f14019547c /include/drm | |
parent | e057b52c1d90e2898fdc01c95d21bd70c81b968a (diff) | |
download | linux-72921cdf8ac248c904e3883418d2f74f45028222.tar.gz linux-72921cdf8ac248c904e3883418d2f74f45028222.tar.bz2 linux-72921cdf8ac248c904e3883418d2f74f45028222.zip |
drm/connector: Add helper to compare HDR metadata
All the drivers that support the HDR metadata property have a similar
function to compare the metadata from one connector state to the next,
and force a mode change if they differ.
All these functions run pretty much the same code, so let's turn it into
an helper that can be shared across those drivers.
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20210430094451.2145002-2-maxime@cerno.tech
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_connector.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_connector.h b/include/drm/drm_connector.h index 32172dab8427..1f51d73ca715 100644 --- a/include/drm/drm_connector.h +++ b/include/drm/drm_connector.h @@ -1672,6 +1672,8 @@ int drm_connector_attach_scaling_mode_property(struct drm_connector *connector, int drm_connector_attach_vrr_capable_property( struct drm_connector *connector); int drm_connector_attach_hdr_output_metadata_property(struct drm_connector *connector); +bool drm_connector_atomic_hdr_metadata_equal(struct drm_connector_state *old_state, + struct drm_connector_state *new_state); int drm_mode_create_aspect_ratio_property(struct drm_device *dev); int drm_mode_create_hdmi_colorspace_property(struct drm_connector *connector); int drm_mode_create_dp_colorspace_property(struct drm_connector *connector); |