[igt-dev] [PATCH] tests/kms_cursor_legacy: Fix assertion failure due to vblank mismatch
Nischala Yelchuri
nischala.yelchuri at intel.com
Thu Mar 7 02:44:44 UTC 2019
For the modeset case, the vblank counter can increment by more than 1.
Cc: Maarten Lankhorst <maarten.lankhorst at intel.com>
Signed-off-by: Nischala Yelchuri <nischala.yelchuri at intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105454
---
tests/kms_cursor_legacy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c
index d6987eea..8652047f 100644
--- a/tests/kms_cursor_legacy.c
+++ b/tests/kms_cursor_legacy.c
@@ -978,7 +978,7 @@ static void two_screens_flip_vs_cursor(igt_display_t *display, int nloops, bool
if (!modeset)
igt_assert_eq(vbl.sequence, vblank_start + 1);
- if (vblank_start && vbl.sequence == vblank_start + 1)
+ if (vblank_start && vbl.sequence >= vblank_start + 1)
vblank_matches = true;
/* Do not requeue on the last 2 events. */
--
2.17.1
More information about the igt-dev
mailing list