From: Damien Lespiau Subject: [PATCH i-g-t 25/43] kms_rotation_crc: Don't store rotate in the test state Date: Thu, 10 Jul 2014 19:00:26 +0100 Message-ID: <1405015244-11370-26-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 E7D006E76C for ; Thu, 10 Jul 2014 11:01:35 -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 We don't use it anywhere else than the test function. Signed-off-by: Damien Lespiau --- tests/kms_rotation_crc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index 30eb227..81d001b 100644 --- a/tests/kms_rotation_crc.c +++ b/tests/kms_rotation_crc.c @@ -62,7 +62,6 @@ typedef struct { struct igt_fb fb; igt_crc_t ref_crc; igt_pipe_crc_t *pipe_crc; - int rotate; } data_t; static void @@ -208,7 +207,6 @@ static void test_plane_rotation(data_t *data, enum igt_plane plane) data->output = output; for (p = 0; p < igt_display_get_n_pipes(display); p++) { data->pipe = p; - data->rotate = DRM_ROTATE_180; if (!prepare_crtc(data)) continue; @@ -221,7 +219,7 @@ static void test_plane_rotation(data_t *data, enum igt_plane plane) plane_id = data->plane->drm_plane->plane_id; if (plane_id != 0) { igt_info("Setting rotation property for plane:%d\n", plane_id); - ret = set_plane_property(data, plane_id, "rotation", BIT(data->rotate), &crc_output); + ret = set_plane_property(data, plane_id, "rotation", BIT(DRM_ROTATE_180), &crc_output); if (ret < 0) { igt_info("Setting rotation failed!"); return; -- 1.8.3.1