From: Damien Lespiau Subject: [PATCH i-g-t 21/43] kms_rotation_crc: Skip the tests if rotation is not supported Date: Thu, 10 Jul 2014 19:00:22 +0100 Message-ID: <1405015244-11370-22-git-send-email-damien.lespiau@intel.com> References: <1405015244-11370-1-git-send-email-damien.lespiau@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by gabe.freedesktop.org (Postfix) with ESMTP id 5061D6E3BD for ; Thu, 10 Jul 2014 11:01:33 -0700 (PDT) In-Reply-To: <1405015244-11370-1-git-send-email-damien.lespiau@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org This happens when the kernel lacks the rotation patches. Signed-off-by: Damien Lespiau --- tests/kms_rotation_crc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index 341f7bc..026c333 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); -- 1.8.3.1