All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Sumera Priyadarsini <sylphrenadin@gmail.com>
Cc: igt-dev@lists.freedesktop.org, daniel@ffwll.ch
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_lease: use igt_wait_for_vblank()
Date: Thu, 18 Feb 2021 10:56:40 +0100	[thread overview]
Message-ID: <YC452IdXNK0yk//9@phenom.ffwll.local> (raw)
In-Reply-To: <20210204122834.ropd7h3rgcog3dux@adolin>

On Thu, Feb 04, 2021 at 05:58:34PM +0530, Sumera Priyadarsini wrote:
> Use igt_wait_for_vblank() instead of igt_wait_for_vblank_count()
> for callers requiring a single vblank interval.
> 
> Signed-off-by: Sumera Priyadarsini <sylphrenadin@gmail.com>

Patch applied, thanks a lot.
-Daniel

> ---
>  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
> 

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

      parent reply	other threads:[~2021-02-18  9:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-04 12:28 [igt-dev] [PATCH i-g-t] tests/kms_lease: use igt_wait_for_vblank() Sumera Priyadarsini
2021-02-04 13:19 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-02-04 16:43 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2021-02-18  9:56 ` Daniel Vetter [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YC452IdXNK0yk//9@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=sylphrenadin@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.