[igt-dev] [PATCH i-g-t] tests/kms_lease: use igt_wait_for_vblank()
Daniel Vetter
daniel at ffwll.ch
Thu Feb 18 09:56:40 UTC 2021
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 at 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
More information about the igt-dev
mailing list