diff options
author | Robert Foss <robert.foss@collabora.com> | 2016-05-18 20:07:08 -0400 |
---|---|---|
committer | Marius Vlad <marius.c.vlad@intel.com> | 2016-07-04 17:15:57 +0300 |
commit | 8a4e62b947ec325af9d6eb8f00cba2d6ed8a59c0 (patch) | |
tree | 01299b910a8e6d1d21c63ad575198e0cdae5f1ed /lib/igt_kms.c | |
parent | ba86514759c607e3ef4099382f9f119d2e7a5db9 (diff) |
igt_kms: Change igt_wait_for_vblank to use helper function.
Change igt_wait_for_vblank() to use kmstest_get_vbl_flag() helper function.
Signed-off-by: Robert Foss <robert.foss@collabora.com>
Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
Diffstat (limited to 'lib/igt_kms.c')
-rw-r--r-- | lib/igt_kms.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c index be806467..8f9ac2da 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -2505,11 +2505,13 @@ void igt_crtc_set_background(igt_pipe_t *pipe, uint64_t background) void igt_wait_for_vblank(int drm_fd, enum pipe pipe) { drmVBlank wait_vbl; + uint32_t pipe_id_flag; memset(&wait_vbl, 0, sizeof(wait_vbl)); + pipe_id_flag = kmstest_get_vbl_flag(pipe); - wait_vbl.request.type = pipe << DRM_VBLANK_HIGH_CRTC_SHIFT | - DRM_VBLANK_RELATIVE; + wait_vbl.request.type = DRM_VBLANK_RELATIVE; + wait_vbl.request.type |= pipe_id_flag; wait_vbl.request.sequence = 1; igt_assert(drmWaitVBlank(drm_fd, &wait_vbl) == 0); |