These provide a crtc-id based interface to get the current sequence (frame) number and to queue an event to be delivered at a specific sequence.
v2: Remove FIRST_PIXEL_OUT flag. This has been removed from the proposed kernel API
d4331dda drm: Add CrtcGetSequence and CrtcQueueSequence IOCTLs [v2]
xf86drm.c | 37 +++++++++++++++++++++++++++++++++++++
xf86drm.h | 12 +++++++++++-
xf86drmMode.c | 9 +++++++++
3 files changed, 57 insertions(+), 1 deletion(-)