public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH] tests/kms_rotation_crc: enable bad-pixel-format subtest for gen11+
@ 2019-05-20  9:48 Swati Sharma
  2019-05-20 10:49 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Swati Sharma @ 2019-05-20  9:48 UTC (permalink / raw)
  To: igt-dev

Currently, subtest bad-pixel-format is getting skipped for gen11.
To enable this for gen11+ platforms, added override_fmt - which could
be any gen11+ format not allowing 90/270 degree rotation like C8,
Y210, Y212, Y216, etc.

DRM_FORMAT_C8 fmt needs to be enabled for IGT, so this can't be used
yet. So, I have used DRM_FORMAT_Y212 which is enabled in IGT.

Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
---
 tests/kms_rotation_crc.c | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c
index fc995d0..fe40481 100644
--- a/tests/kms_rotation_crc.c
+++ b/tests/kms_rotation_crc.c
@@ -805,14 +805,13 @@ igt_main
 	data.pos_y = 0;
 
 	igt_subtest_f("bad-pixel-format") {
-		/*
-		 * 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);
+		 /* gen11 enables RGB565 rotation for 90/270 degrees.
+		  * so apart from this, any other gen11+ pixel format
+		  * can be used which doesn't support 90/270 degree
+		  * rotation */
+		igt_require(gen >= 9);
 		data.rotation = IGT_ROTATION_90;
-		data.override_fmt = DRM_FORMAT_RGB565;
+		data.override_fmt = gen < 11 ? DRM_FORMAT_RGB565 : DRM_FORMAT_Y212;
 		test_plane_rotation(&data, DRM_PLANE_TYPE_PRIMARY, true);
 	}
 	data.override_fmt = 0;
-- 
1.9.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-06-07 10:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-20  9:48 [igt-dev] [PATCH] tests/kms_rotation_crc: enable bad-pixel-format subtest for gen11+ Swati Sharma
2019-05-20 10:49 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2019-05-20 10:59 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2019-05-20 11:04 ` [igt-dev] [PATCH] " Juha-Pekka Heikkila
2019-06-07 10:11   ` Kahola, Mika
2019-05-20 13:42 ` [igt-dev] ✓ Fi.CI.IGT: success for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox