summaryrefslogtreecommitdiff
path: root/tests/kms_rotation_crc.c
diff options
context:
space:
mode:
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);