From: Damien Lespiau Subject: [PATCH i-g-t 40/43] kms_rotation_crc: Document the two steps in prepare_crtc() Date: Thu, 10 Jul 2014 19:00:41 +0100 Message-ID: <1405015244-11370-41-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 06E3C6E776 for ; Thu, 10 Jul 2014 11:02:10 -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, 6 insertions(+), 1 deletion(-) diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index 5780e40..cb1b00b 100644 --- a/tests/kms_rotation_crc.c +++ b/tests/kms_rotation_crc.c @@ -104,14 +104,19 @@ static bool prepare_crtc(data_t *data, igt_output_t *output, enum pipe pipe, &data->fb); igt_assert(fb_id); + /* Step 1: create a reference CRC for a software-rotated fb */ + paint_squares(data, &data->fb, mode, DRM_ROTATE_180); igt_plane_set_fb(plane, &data->fb); igt_display_commit(display); - /* Collect reference crc */ igt_pipe_crc_collect_crc(data->pipe_crc, &data->ref_crc); + /* + * Step 2: prepare the plane with an non-rotated fb let the hw + * rotate it. + */ paint_squares(data, &data->fb, mode, DRM_ROTATE_0); igt_plane_set_fb(plane, &data->fb); -- 1.8.3.1