Return-Path: Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5FC336E05F for ; Thu, 4 Feb 2021 12:28:39 +0000 (UTC) Received: by mail-pl1-x630.google.com with SMTP id e9so1691981plh.3 for ; Thu, 04 Feb 2021 04:28:39 -0800 (PST) Date: Thu, 4 Feb 2021 17:58:34 +0530 From: Sumera Priyadarsini Message-ID: <20210204122834.ropd7h3rgcog3dux@adolin> MIME-Version: 1.0 Content-Disposition: inline Subject: [igt-dev] [PATCH i-g-t] tests/kms_lease: use igt_wait_for_vblank() List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org Cc: daniel@ffwll.ch List-ID: Use igt_wait_for_vblank() instead of igt_wait_for_vblank_count() for callers requiring a single vblank interval. Signed-off-by: Sumera Priyadarsini --- tests/kms_lease.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/kms_lease.c b/tests/kms_lease.c index ca8fa5b7..e9a47767 100644 --- a/tests/kms_lease.c +++ b/tests/kms_lease.c @@ -356,8 +356,8 @@ static void page_flip_implicit_plane(data_t *data) display = &data->master.display; pipe = crtc_id_to_pipe(display, data->crtc_id); - igt_wait_for_vblank_count(data->master.fd, - display->pipes[pipe].crtc_offset, 1); + igt_wait_for_vblank(data->master.fd, + display->pipes[pipe].crtc_offset); do_or_die(drmModePageFlip(mcl.fd, data->crtc_id, data->master.primary_fb.fb_id, @@ -369,8 +369,8 @@ static void page_flip_implicit_plane(data_t *data) pipe = crtc_id_to_pipe(display, data->crtc_id); - igt_wait_for_vblank_count(data->master.fd, - display->pipes[pipe].crtc_offset, 1); + igt_wait_for_vblank(data->master.fd, + display->pipes[pipe].crtc_offset); igt_assert_eq(drmModePageFlip(mcl.fd, data->crtc_id, data->master.primary_fb.fb_id, -- 2.25.1 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev