From 9801c662f845e24cb75bde402e854f88a5c68252 Mon Sep 17 00:00:00 2001 From: Ville Syrjälä Date: Mon, 9 Oct 2017 19:20:58 +0300 Subject: tests/kms_setmode: Request the initial vbl count with RELATIVE instead of ABSOLUTE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Asking for the initial vblank count by specifying and absolute vblank count of 0 doesn't make much sense. Switch to a relative query instead. v2: Drop the NEXTONMISS (Daniel) v3: Put back the NEXTONMISS (Chris) Cc: Daniel Vetter Cc: Chris Wilson Signed-off-by: Ville Syrjälä Reviewed-by: Chris Wilson --- tests/kms_setmode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/kms_setmode.c') diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c index 68149604..d150483c 100644 --- a/tests/kms_setmode.c +++ b/tests/kms_setmode.c @@ -434,7 +434,7 @@ static void check_timings(int crtc_idx, const drmModeModeInfo *kmode) memset(&wait, 0, sizeof(wait)); wait.request.type = kmstest_get_vbl_flag(crtc_idx); - wait.request.type |= DRM_VBLANK_ABSOLUTE | DRM_VBLANK_NEXTONMISS; + wait.request.type |= DRM_VBLANK_RELATIVE | DRM_VBLANK_NEXTONMISS; do_or_die(drmWaitVBlank(drm_fd, &wait)); last_seq = wait.reply.sequence; -- cgit v1.2.3