summaryrefslogtreecommitdiff
path: root/tests/kms_rotation_crc.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2017-06-12 10:56:01 +0200
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2017-06-12 10:59:10 +0200
commita6458241594320e87ff54a01a183dd3a071e032e (patch)
tree6858f1fec10c8cd25df451dcb64b714945810667 /tests/kms_rotation_crc.c
parentd0e1eb9ab4c7798c2a9e2716914805162c79f36b (diff)
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 <maarten.lankhorst@linux.intel.com> Date: Tue Jun 6 16:41:12 2017 +0200 tests/kms_rotation_crc: Implement stricter rotation tests Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'tests/kms_rotation_crc.c')
-rw-r--r--tests/kms_rotation_crc.c8
1 files changed, 8 insertions, 0 deletions
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);