diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2014-07-08 18:01:59 +0100 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2014-07-11 15:12:22 +0100 |
commit | 0b3a30ee5a2668897e14c99dac8ba0b2ed7bb94d (patch) | |
tree | b5d8bf30b3c7f460983a1200d78dd466508dc962 /tests/kms_rotation_crc.c | |
parent | 5edab97f7fa646639335166912ec443d27735fad (diff) |
kms_rotation_crc: Skip the tests if rotation is not supported
This happens when the kernel lacks the rotation patches.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'tests/kms_rotation_crc.c')
-rw-r--r-- | tests/kms_rotation_crc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index 341f7bc3..026c333c 100644 --- a/tests/kms_rotation_crc.c +++ b/tests/kms_rotation_crc.c @@ -236,6 +236,9 @@ static void test_sprite_rotation(data_t *data) sleep(2); sprite = igt_output_get_plane(output, IGT_PLANE_2); + + igt_require(igt_plane_supports_rotation(sprite)); + plane_id = sprite->drm_plane->plane_id; if (plane_id != 0) { igt_info("Setting rotation property for plane:%d\n", plane_id); @@ -280,6 +283,9 @@ static void test_primary_rotation(data_t *data) sleep(2); primary = igt_output_get_plane(output, IGT_PLANE_PRIMARY); + + igt_require(igt_plane_supports_rotation(primary)); + plane_id = primary->drm_plane->plane_id; if (plane_id != 0) { igt_info("Setting rotation property for plane:%d\n", plane_id); |