diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2017-10-09 19:20:58 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-03-11 22:03:25 +0200 |
commit | e347d24a3a741391d1d488b8efb4b2de32eb1632 (patch) | |
tree | c0ce1b2d37d12f529e0dbe7fb9efe5be1f22eba3 /tests/kms_flip.c | |
parent | 9801c662f845e24cb75bde402e854f88a5c68252 (diff) |
tests/kms_flip: Request the initial vbl count with RELATIVE instead of ABSOLUTE
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 <daniel@ffwll.ch>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/kms_flip.c')
-rwxr-xr-x | tests/kms_flip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_flip.c b/tests/kms_flip.c index 798fc4e8..b9729dfd 100755 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -1105,7 +1105,7 @@ static void calibrate_ts(struct test_output *o, int crtc_idx) 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; |