From 4497591d2572831a9f07fd9e48a2571bfcffe354 Mon Sep 17 00:00:00 2001 From: Maxime Ripard Date: Thu, 4 Oct 2018 14:39:08 +0200 Subject: 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 Signed-off-by: Maxime Ripard --- tests/kms_chamelium.c | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'tests/kms_chamelium.c') 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); } -- cgit v1.2.3