[igt-dev] [PATCH i-g-t] tests/kms_lease: use igt_wait_for_vblank()

Sumera Priyadarsini sylphrenadin at gmail.com
Thu Feb 4 12:28:34 UTC 2021


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



More information about the igt-dev mailing list