[PATCH i-g-t] tests/kms_lease: Add vblank count to avoind resource busy
Mohammed Thasleem
mohammed.thasleem at intel.com
Thu Dec 19 16:39:38 UTC 2024
Add vblank count to avoind resource busy so that page flip to be
happen without any sync issue while setting a mode on leased output.
Signed-off-by: Mohammed Thasleem <mohammed.thasleem at intel.com>
---
tests/kms_lease.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/kms_lease.c b/tests/kms_lease.c
index 0f3a68fed..0fbf5b0ba 100644
--- a/tests/kms_lease.c
+++ b/tests/kms_lease.c
@@ -378,8 +378,8 @@ static void page_flip_implicit_plane(data_t *data)
display = &data->master.display;
- igt_wait_for_vblank(data->master.fd,
- display->pipes[pipe].crtc_offset);
+ igt_wait_for_vblank_count(data->master.fd,
+ display->pipes[pipe].crtc_offset, 2);
do_or_die(drmModePageFlip(data->lease.fd, data->crtc_id,
data->master.primary_fb.fb_id,
--
2.25.1
More information about the igt-dev
mailing list