summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorUma Shankar <uma.shankar@intel.com>2017-05-31 15:40:49 +0530
committerTao Huang <huangtao@rock-chips.com>2017-11-02 15:33:02 +0800
commitb1d0690d171708b54839b075afd38c03b4229f84 (patch)
tree2a3bf7ed165f9a0be730c501886bea65bb727466 /include/drm
parent2ea096780caf4b03a68302ae9bc8c0145d9c1ef9 (diff)
FROMLIST: drm: Add HDR source metadata property
This patch adds a blob property to get HDR metadata information from userspace. This will be send as part of AVI Infoframe to panel. Change-Id: I0d009889ca567213a5e264d74b6816ba6d2ee0d4 Signed-off-by: Uma Shankar <uma.shankar@intel.com> Signed-off-by: Zheng Yang <zhengyang@rock-chips.com> (am from https://patchwork.kernel.org/patch/9756427/)
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_crtc.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 11e2576590b0..ba1a1ba1ed02 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -674,6 +674,13 @@ struct drm_connector_state {
struct drm_atomic_state *state;
struct drm_tv_connector_state tv;
+
+ /**
+ * @metadata_blob_ptr:
+ * DRM blob property for HDR metadata
+ */
+ struct drm_property_blob *hdr_source_metadata_blob_ptr;
+ bool hdr_metadata_changed : 1;
};
/**
@@ -982,6 +989,10 @@ struct drm_connector {
uint8_t num_h_tile, num_v_tile;
uint8_t tile_h_loc, tile_v_loc;
uint16_t tile_h_size, tile_v_size;
+
+ /* HDR metdata */
+ struct hdr_static_metadata *hdr_panel_metadata;
+ struct hdr_static_metadata *hdr_source_metadata;
};
/**
@@ -1621,6 +1632,12 @@ struct drm_mode_config {
struct drm_property *suggested_x_property;
struct drm_property *suggested_y_property;
+ /**
+ * hdr_metadata_property: Connector property containing hdr metatda
+ * This will be provided by userspace compositors based on HDR content
+ */
+ struct drm_property *hdr_source_metadata_property;
+
/* dumb ioctl parameters */
uint32_t preferred_depth, prefer_shadow;