From a6458241594320e87ff54a01a183dd3a071e032e Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Mon, 12 Jun 2017 10:56:01 +0200 Subject: kms_rotation_crc: Fix rotation tests on older platforms again. I've erroneously assumed the rotation tests only work on gen9+, and didn't test what would happen on older platforms. Add an extra testcase that tries to fill the whole screen, and only run that test on gen8 and lower for the primary plane. This fixes the testcases failing since the following commit: commit a7fe05b0a784a7a7c58d36842426579a6e00f5a0 Author: Maarten Lankhorst Date: Tue Jun 6 16:41:12 2017 +0200 tests/kms_rotation_crc: Implement stricter rotation tests Signed-off-by: Maarten Lankhorst --- tests/kms_rotation_crc.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/kms_rotation_crc.c') diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index 32c6a662..83e37f12 100644 --- a/tests/kms_rotation_crc.c +++ b/tests/kms_rotation_crc.c @@ -148,6 +148,7 @@ static void remove_fbs(data_t *data) } enum rectangle_type { + rectangle, square, portrait, landscape, @@ -187,6 +188,8 @@ static void prepare_fbs(data_t *data, igt_output_t *output, } switch (rect) { + case rectangle: + break; case square: w = h = min(h, w); break; @@ -328,6 +331,11 @@ static void test_plane_rotation(data_t *data, int plane_type) i != square) continue; + /* Only support partial covering primary plane on gen9+ */ + if (plane_type == DRM_PLANE_TYPE_PRIMARY && + i != rectangle && intel_gen(intel_get_drm_devid(data->gfx_fd)) < 9) + continue; + igt_debug("Testing case %i on pipe %s\n", i, kmstest_pipe_name(pipe)); prepare_fbs(data, output, plane, i); -- cgit v1.2.3