From: Damien Lespiau Subject: [PATCH i-g-t 35/43] kms_rotation_crc: Allow the sprite test to run even without universal planes Date: Thu, 10 Jul 2014 19:00:36 +0100 Message-ID: <1405015244-11370-36-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 C69BE6E778 for ; Thu, 10 Jul 2014 11:02:08 -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 Signed-off-by: Damien Lespiau --- tests/kms_rotation_crc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index d196c7c..d318cd2 100644 --- a/tests/kms_rotation_crc.c +++ b/tests/kms_rotation_crc.c @@ -142,9 +142,12 @@ static void test_plane_rotation(data_t *data, enum igt_plane plane_type) enum pipe pipe; int valid_tests = 0; igt_crc_t crc_output; + enum igt_commit_style commit = COMMIT_LEGACY; - if (plane_type == IGT_PLANE_PRIMARY) + if (plane_type == IGT_PLANE_PRIMARY) { igt_require(data->display.has_universal_planes); + commit = COMMIT_UNIVERSAL; + } for_each_connected_output(display, output) { for_each_pipe(display, pipe) { @@ -159,7 +162,7 @@ static void test_plane_rotation(data_t *data, enum igt_plane plane_type) continue; igt_plane_set_rotation(plane, IGT_ROTATION_180); - igt_display_commit2(display, COMMIT_UNIVERSAL); + igt_display_commit2(display, commit); igt_pipe_crc_collect_crc(data->pipe_crc, &crc_output); igt_assert(igt_crc_equal(&data->ref_crc, &crc_output)); -- 1.8.3.1