summaryrefslogtreecommitdiff
path: root/tests/kms_chamelium.c
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@bootlin.com>2018-10-04 14:39:08 +0200
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2018-10-08 16:58:13 +0300
commit4497591d2572831a9f07fd9e48a2571bfcffe354 (patch)
treef1f2123da304454d96ad37aad7aa2e314642f9db /tests/kms_chamelium.c
parentc55a8c6fac4739b34007afc25b4d821734bd630d (diff)
chamelium: Add format subtests
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. Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Diffstat (limited to 'tests/kms_chamelium.c')
-rw-r--r--tests/kms_chamelium.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/kms_chamelium.c b/tests/kms_chamelium.c
index 0c082f9c..e0e3e3f1 100644
--- a/tests/kms_chamelium.c
+++ b/tests/kms_chamelium.c
@@ -947,6 +947,46 @@ 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-xbgr8888", HDMIA)
+ test_display_crc_one_mode(&data, port,
+ DRM_FORMAT_XBGR8888, 1);
+
+ connector_subtest("hdmi-crc-rgb888", HDMIA)
+ test_display_crc_one_mode(&data, port,
+ DRM_FORMAT_RGB888, 1);
+
+ connector_subtest("hdmi-crc-bgr888", HDMIA)
+ test_display_crc_one_mode(&data, port,
+ DRM_FORMAT_BGR888, 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);
}