summaryrefslogtreecommitdiff
path: root/lib/igt_kms.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2018-03-06 20:01:44 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2018-06-08 12:56:01 +0300
commita9a683e9e1094ba1fb195e6ea183b04d1968614f (patch)
treea95499a6f8d187ce00a58374aef5ac3ae63f7bf1 /lib/igt_kms.h
parentb697534aa4dfc38ff942f8bb851e6c9d9e344858 (diff)
lib/kms: Respect fb color_encoding/color_range
Configure the plane color_encoding/color_range based on what the fb contents are. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'lib/igt_kms.h')
-rw-r--r--lib/igt_kms.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index 45252388..4222a341 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -264,6 +264,8 @@ enum igt_atomic_plane_properties {
IGT_PLANE_TYPE,
IGT_PLANE_ROTATION,
IGT_PLANE_IN_FORMATS,
+ IGT_PLANE_COLOR_ENCODING,
+ IGT_PLANE_COLOR_RANGE,
IGT_NUM_PLANE_PROPS
};
@@ -308,6 +310,13 @@ typedef struct {
/* gem handle for fb */
uint32_t gem_handle;
+ struct {
+ uint64_t values[IGT_NUM_COLOR_ENCODINGS];
+ } color_encoding;
+ struct {
+ uint64_t values[IGT_NUM_COLOR_RANGES];
+ } color_range;
+
uint64_t changed;
uint32_t props[IGT_NUM_PLANE_PROPS];
uint64_t values[IGT_NUM_PLANE_PROPS];