[v5 i-g-t 3/3] HAX: Print Color Bit Depth from EDID
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Mon Jan 10 12:22:23 UTC 2022
Print Color Bit Depth from EDID
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
tests/intel-ci/fast-feedback.testlist | 4 ++++
tests/kms_color_helper.c | 9 +++++++++
2 files changed, 13 insertions(+)
diff --git a/tests/intel-ci/fast-feedback.testlist b/tests/intel-ci/fast-feedback.testlist
index de1c6cb46c..8b53cb6767 100644
--- a/tests/intel-ci/fast-feedback.testlist
+++ b/tests/intel-ci/fast-feedback.testlist
@@ -102,6 +102,10 @@ igt at kms_chamelium@hdmi-crc-fast
igt at kms_chamelium@vga-hpd-fast
igt at kms_chamelium@vga-edid-read
igt at kms_chamelium@common-hpd-after-suspend
+igt at kms_color@pipe-A-deep-color
+igt at kms_color@pipe-B-deep-color
+igt at kms_color@pipe-C-deep-color
+igt at kms_color@pipe-D-deep-color
igt at kms_prop_blob@basic
igt at kms_cursor_legacy@basic-busy-flip-before-cursor-atomic
igt at kms_cursor_legacy@basic-busy-flip-before-cursor-legacy
diff --git a/tests/kms_color_helper.c b/tests/kms_color_helper.c
index 9234b616ac..27108a4ce1 100644
--- a/tests/kms_color_helper.c
+++ b/tests/kms_color_helper.c
@@ -33,6 +33,7 @@ is_panel_supports_deep_color(int fd, drmModeConnector *connector)
struct edid_cea_data_block *vsdb;
uint8_t flags1 = 0;
int i;
+ char mfg[3];
drmModePropertyBlobPtr edid_blob = NULL;
igt_assert(kmstest_get_property(fd, connector->connector_id,
@@ -65,6 +66,8 @@ is_panel_supports_deep_color(int fd, drmModeConnector *connector)
flags1 = (vsdb->data.vsdbs[0].data.hdmi.flags1) & (7 << 6);
drmModeFreePropertyBlob(edid_blob);
+ igt_info("VSDB flags: 0x%x\n", flags1);
+
if (flags1)
return true;
else
@@ -72,6 +75,12 @@ is_panel_supports_deep_color(int fd, drmModeConnector *connector)
}
bit_depth = edid->input;
+ edid_get_mfg(edid, mfg);
+
+ igt_info("Panel EDID mfg: %s, ver.rev: %d.%d, ext_len: %d, input: 0x%x, bit depth: 0x%x\n",
+ mfg, edid->version, edid->revision, edid->extensions_len, ((bit_depth & 0xf0) >> 4),
+ ((bit_depth & (7 << 4)) >> 4));
+
drmModeFreePropertyBlob(edid_blob);
/*
--
2.32.0
More information about the Intel-gfx-trybot
mailing list