From: Damien Lespiau Subject: [PATCH i-g-t 31/43] kms_rotation_crc: Remove 'output' from the state Date: Thu, 10 Jul 2014 19:00:32 +0100 Message-ID: <1405015244-11370-32-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 2C1596E775 for ; Thu, 10 Jul 2014 11:01:42 -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 restore the balance between prepare_crtc() and cleanup_crtc(), both now taking the output as a parameter. Signed-off-by: Damien Lespiau --- tests/kms_rotation_crc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index a68aece..5b195f9 100644 --- a/tests/kms_rotation_crc.c +++ b/tests/kms_rotation_crc.c @@ -46,7 +46,6 @@ typedef struct { int gfx_fd; igt_display_t display; - igt_output_t *output; igt_plane_t *plane; struct igt_fb fb; igt_crc_t ref_crc; @@ -79,7 +78,7 @@ paint_squares(data_t *data, struct igt_fb *fb, drmModeModeInfo *mode, cairo_destroy(cr); } -static bool prepare_crtc(data_t *data, enum pipe pipe) +static bool prepare_crtc(data_t *data, igt_output_t *output, enum pipe pipe) { drmModeModeInfo *mode; igt_display_t *display = &data->display; @@ -150,9 +149,8 @@ static void test_plane_rotation(data_t *data, enum igt_plane plane) igt_require(data->display.has_universal_planes); for_each_connected_output(display, output) { - data->output = output; for_each_pipe(display, pipe) { - if (!prepare_crtc(data, pipe)) + if (!prepare_crtc(data, output, pipe)) continue; sleep(2); -- 1.8.3.1