Present wants to use this too.
0d94f32 kms: implement a more generic event mechanism
src/drmmode_display.c | 120 ++++++++++++++++++++++++++++++++++++++++++++-----
src/nouveau_dri2.c | 71 +++++++++++++++++++----------
src/nv_proto.h | 12 ++---
3 files changed, 161 insertions(+), 42 deletions(-)
Upstream: cgit.freedesktop.org