summaryrefslogtreecommitdiff
path: root/tests/kms_hdr.c
diff options
context:
space:
mode:
authorMario Kleiner <mario.kleiner.de@gmail.com>2021-02-12 06:44:47 +0100
committerVille Syrjälä <ville.syrjala@linux.intel.com>2021-02-12 16:30:13 +0200
commit627cc5353535d61fa33c5f7ff7e64f154c84f10a (patch)
tree00a25ee720c3bd460a531dff53d7e60bc9cce707 /tests/kms_hdr.c
parentc251d12e5f2dc7c2c1e0d2c4d5eefd3b2d2206d7 (diff)
tests/kms-hdr: Fix HDMI_STATIC_METADATA_TYPE1.
According to the CTA 861.G specification, table 44 in section 6.9 and also specifically section 6.9.1, the value of the constant must be 0, not 1, so fix this. An identical fix has been submitted for inclusion into the kernel headers (this is not exposed uapi). See: https://lists.freedesktop.org/archives/dri-devel/2021-February/297233.html Fixing this constant for Kodi also fixed some HDR TVs, so the wrong constant has real world consequences on some display hardware. See: https://github.com/xbmc/xbmc/pull/19129 Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com> Cc: Simon Ser <contact@emersion.fr> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests/kms_hdr.c')
-rw-r--r--tests/kms_hdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_hdr.c b/tests/kms_hdr.c
index aa7e685b..e9dd7f27 100644
--- a/tests/kms_hdr.c
+++ b/tests/kms_hdr.c
@@ -35,7 +35,7 @@ IGT_TEST_DESCRIPTION("Test HDR metadata interfaces and bpc switch");
/* DRM HDR definitions. Not in the UAPI header, unfortunately. */
enum hdmi_metadata_type {
- HDMI_STATIC_METADATA_TYPE1 = 1,
+ HDMI_STATIC_METADATA_TYPE1 = 0,
};
enum hdmi_eotf {