mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-23 14:23:03 +00:00
lib: fold igt_display into igt_kms
For 1 function and 2 types we kinda don't need separate files. Especially now that igt_kms is much more focused on the actual modeset stuff with all the framebuffer helpers extracted to igt_fb. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
@@ -993,3 +993,16 @@ void igt_plane_set_position(igt_plane_t *plane, int x, int y)
|
||||
|
||||
plane->position_changed = true;
|
||||
}
|
||||
|
||||
void igt_wait_for_vblank(int drm_fd, enum pipe pipe)
|
||||
{
|
||||
drmVBlank wait_vbl;
|
||||
|
||||
memset(&wait_vbl, 0, sizeof(wait_vbl));
|
||||
|
||||
wait_vbl.request.type = pipe << DRM_VBLANK_HIGH_CRTC_SHIFT |
|
||||
DRM_VBLANK_RELATIVE;
|
||||
wait_vbl.request.sequence = 1;
|
||||
|
||||
igt_assert(drmWaitVBlank(drm_fd, &wait_vbl) == 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user