[igt-dev] [PATCH i-g-t 2/2] tests/kms_rotation_crc: Fix bad-pixel-format not to be run on gen11 and later

Juha-Pekka Heikkila juhapekka.heikkila at gmail.com
Mon Aug 27 12:27:34 UTC 2018


gen11 enables 90/270 rotation for RGB565 mode. IGT would need support for
C8 mode to enable running this subtest on gen11 and later.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
---
 tests/kms_rotation_crc.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c
index b994cc5..35e6721 100644
--- a/tests/kms_rotation_crc.c
+++ b/tests/kms_rotation_crc.c
@@ -558,6 +558,12 @@ igt_main
 
 	igt_subtest_f("bad-pixel-format") {
 		igt_require(gen >= 9);
+		/*
+		 * gen11 enables RGB565 rotation for 90/270 degrees.
+		 * C8 mode need to be enabled for IGT if want to run this test
+		 * on gen11 onwards.
+		 */
+		igt_require(gen < 11);
 		data.rotation = IGT_ROTATION_90;
 		data.override_fmt = DRM_FORMAT_RGB565;
 		test_plane_rotation(&data, DRM_PLANE_TYPE_PRIMARY, true);
-- 
2.7.4



More information about the igt-dev mailing list