Some refactoring, fixes and a few test cases for the DRM_IOCTL_WAIT_VBLANK IOCTL. Tested on IVB using the drm-intel-nightly kernel branch. Imre Deak (22): drmtest: add function to remove an DRM FB flip_test: free FBs after each test run flip_test: reset the state for each test run flip_test: check drmHandleEvents()' return value test_flip: fix checking for delayed event reception flip_test: store fb width, height in test context object flip_test: factor out drmModePageFlip flip_test: move output panning inside the flip_handler flip_test: factor out the event loop/wait for event logic flip_test: factor out the final state check flip_test: store current flip/received timestamps in the context obj flip_test: split the flip handler into logical parts flip_test: swap the order of check state/run test step flip_test: factor out the event state flip_test: don't skip checks for sequence #1 flip_test: store crtc_idx in the test context obj flip_test: unify the name of the current test in status messages flip_test: make page flip tests conditional flip_test: add logic to track pending events flip_test: add event sequence number tracking flip_test: add check to see if any event has occured flip_test: add wait-for-vblank tests lib/drmtest.c | 5 + lib/drmtest.h | 1 + tests/flip_test.c | 584 +++++++++++++++++++++++++++++++++++++++-------------- 3 files changed, 440 insertions(+), 150 deletions(-) -- 1.7.9.5