[v3 i-g-t 3/3] HAX: Print Color Bit Depth from EDID
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Mon Jan 10 07:37:15 UTC 2022
Print Color Bit Depth from EDID
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
tests/kms_color_helper.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/kms_color_helper.c b/tests/kms_color_helper.c
index 9ca266dd3a..03e264d995 100644
--- a/tests/kms_color_helper.c
+++ b/tests/kms_color_helper.c
@@ -30,6 +30,7 @@ is_panel_supports_deep_color(int fd, drmModeConnector *connector)
uint64_t edid_blob_id;
const struct edid *edid;
uint8_t bit_depth;
+ char mfg[3];
drmModePropertyBlobPtr edid_blob = NULL;
igt_assert(kmstest_get_property(fd, connector->connector_id,
@@ -39,6 +40,12 @@ is_panel_supports_deep_color(int fd, drmModeConnector *connector)
edid = (const struct edid *) edid_blob->data;
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