[v2 i-g-t 3/3] HAX: Print Color Bit Depth from EDID
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Fri Jan 7 12:37:20 UTC 2022
Print Color Bit Depth from EDID
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
tests/kms_color_helper.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/kms_color_helper.c b/tests/kms_color_helper.c
index 9ca266dd3a..957c1d706c 100644
--- a/tests/kms_color_helper.c
+++ b/tests/kms_color_helper.c
@@ -67,6 +67,9 @@ is_panel_supports_deep_color(int fd, drmModeConnector *connector)
* For deep-color we need atleast 10-bits.
*/
+ igt_info("Panel supports input: 0x%x, bit depth: 0x%x\n",
+ ((bit_depth & 0xf0) >> 4), ((bit_depth & (7 << 4)) >> 4));
+
if (!(bit_depth & (1 << 7)))
return false;
if (((bit_depth & (7 << 4)) >> 4) >= 3)
--
2.32.0
More information about the Intel-gfx-trybot
mailing list