From 94b4e204473a7d9f49e536c8877a4a5636e0d1b2 Mon Sep 17 00:00:00 2001 From: Juha-Pekka Heikkila Date: Wed, 29 Aug 2018 16:12:12 +0300 Subject: tests/kms_rotation_crc: Fix bad-pixel-format not to be run on gen11 and later gen11 enables 90/270 rotation for RGB565 mode. IGT would need support for C8 mode to enable running this subtest on gen11 and later. v2 (Mika Kahola): Combine gen checks into one comparison. Update comment on why bad-pixel-format is disabled beyond gen11. Signed-off-by: Juha-Pekka Heikkila Reviewed-by: Mika Kahola --- tests/kms_rotation_crc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/kms_rotation_crc.c') diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index b994cc5d..5ed0c0b3 100644 --- a/tests/kms_rotation_crc.c +++ b/tests/kms_rotation_crc.c @@ -557,7 +557,12 @@ igt_main data.pos_y = 0; igt_subtest_f("bad-pixel-format") { - igt_require(gen >= 9); + /* + * gen11 enables RGB565 rotation for 90/270 degrees. + * DRM_FORMAT_C8 fmt need to be enabled for IGT if want to run + * this test on gen11 and later. + */ + igt_require(gen >= 9 && gen < 11); data.rotation = IGT_ROTATION_90; data.override_fmt = DRM_FORMAT_RGB565; test_plane_rotation(&data, DRM_PLANE_TYPE_PRIMARY, true); -- cgit v1.2.3