From: Damien Lespiau Subject: [PATCH i-g-t] kms_plane: Specify the pipe when grabbing reference CRCs Date: Wed, 9 Jul 2014 11:10:19 +0100 Message-ID: <1404900619-5229-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 mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTP id DD8076E2CD for ; Wed, 9 Jul 2014 03:10:53 -0700 (PDT) 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 When changing the pipe we were using, test_grab_crc() wasn't correctly setting the pipe constraint before waiting for the CRC on the pipe, and so we ended up waiting for a CRC on a pipe that wasn't lit up. Signed-off-by: Damien Lespiau --- tests/kms_plane.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/kms_plane.c b/tests/kms_plane.c index 5f7bfc0..c3c0e5e 100644 --- a/tests/kms_plane.c +++ b/tests/kms_plane.c @@ -63,14 +63,16 @@ static void test_fini(data_t *data) } static void -test_grab_crc(data_t *data, igt_output_t *output, color_t *fb_color, - igt_crc_t *crc /* out */) +test_grab_crc(data_t *data, igt_output_t *output, enum pipe pipe, + color_t *fb_color, igt_crc_t *crc /* out */) { struct igt_fb fb; drmModeModeInfo *mode; igt_plane_t *primary; char *crc_str; + igt_output_set_pipe(output, pipe); + primary = igt_output_get_plane(output, 0); mode = igt_output_get_mode(output); @@ -162,7 +164,7 @@ test_plane_position_with_output(data_t *data, test_init(data, pipe); - test_grab_crc(data, output, &green, &test.reference_crc); + test_grab_crc(data, output, pipe, &green, &test.reference_crc); igt_output_set_pipe(output, pipe); @@ -287,8 +289,8 @@ test_plane_panning_with_output(data_t *data, test_init(data, pipe); - test_grab_crc(data, output, &red, &test.red_crc); - test_grab_crc(data, output, &blue, &test.blue_crc); + test_grab_crc(data, output, pipe, &red, &test.red_crc); + test_grab_crc(data, output, pipe, &blue, &test.blue_crc); igt_output_set_pipe(output, pipe); -- 1.8.3.1