[igt-dev] [PATCH i-g-t 11/12] chamelium: Add format subtests
Maxime Ripard
maxime.ripard at bootlin.com
Tue Apr 24 07:46:45 UTC 2018
Now that we have everything in place, we can add the support for the
subtests testing the output of planes setup with formats other than XR24.
Since YUV will be a bit trickier to handle, start with various common RGB
formats.
Signed-off-by: Maxime Ripard <maxime.ripard at bootlin.com>
---
tests/kms_chamelium.c | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/tests/kms_chamelium.c b/tests/kms_chamelium.c
index 9cd05b83076a..4a634c9e456d 100644
--- a/tests/kms_chamelium.c
+++ b/tests/kms_chamelium.c
@@ -964,6 +964,34 @@ igt_main
test_display_crc_all_modes(&data, port,
DRM_FORMAT_XRGB8888, 3);
+ connector_subtest("hdmi-crc-argb8888", HDMIA)
+ test_display_crc_one_mode(&data, port,
+ DRM_FORMAT_ARGB8888, 1);
+
+ connector_subtest("hdmi-crc-abgr8888", HDMIA)
+ test_display_crc_one_mode(&data, port,
+ DRM_FORMAT_ABGR8888, 1);
+
+ connector_subtest("hdmi-crc-xrgb8888", HDMIA)
+ test_display_crc_one_mode(&data, port,
+ DRM_FORMAT_XRGB8888, 1);
+
+ connector_subtest("hdmi-crc-rgb565", HDMIA)
+ test_display_crc_one_mode(&data, port,
+ DRM_FORMAT_RGB565, 1);
+
+ connector_subtest("hdmi-crc-bgr565", HDMIA)
+ test_display_crc_one_mode(&data, port,
+ DRM_FORMAT_BGR565, 1);
+
+ connector_subtest("hdmi-crc-argb1555", HDMIA)
+ test_display_crc_one_mode(&data, port,
+ DRM_FORMAT_ARGB1555, 1);
+
+ connector_subtest("hdmi-crc-xrgb1555", HDMIA)
+ test_display_crc_one_mode(&data, port,
+ DRM_FORMAT_XRGB1555, 1);
+
connector_subtest("hdmi-frame-dump", HDMIA)
test_display_frame_dump(&data, port);
}
--
git-series 0.9.1
More information about the igt-dev
mailing list