summaryrefslogtreecommitdiff
path: root/tests/kms_rotation_crc.c
diff options
context:
space:
mode:
authorJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>2018-08-29 16:12:12 +0300
committerMika Kahola <mika.kahola@intel.com>2018-09-06 13:43:29 +0300
commit94b4e204473a7d9f49e536c8877a4a5636e0d1b2 (patch)
tree31321276a85f7995e1c37c177e9d814e632a6182 /tests/kms_rotation_crc.c
parent7d695419d774c9992d683f8da194fe7932d5e8ec (diff)
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 <juhapekka.heikkila@gmail.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Diffstat (limited to 'tests/kms_rotation_crc.c')
-rw-r--r--tests/kms_rotation_crc.c7
1 files changed, 6 insertions, 1 deletions
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);