Add CRTC ID to vblank event

Graphics / Mesa 3D Graphics Library / libdrm - Ander Conselvan de Oliveira [intel.com] - 6 April 2017 15:32 EDT

When using the atomic API, one request can span multiple CRTCs, however one event is generated per CRTC. As we cannot disambiguate the CRTC with user data (since we only have one piece of user data to pass in), newer kernels can include the CRTC ID in the page flip event.

Add a new vfunc to dispatch vblank events carrying a CRTC ID to clients who negotiate a higher interface version.

[daniels: Rebased, include new cap, call page_flip_handler if it is set but page_flip_handler2 isn't even on newer contexts, write a commit message.]

v2: Split into separate commit.

890d43a Add CRTC ID to vblank event
xf86drm.h | 9 ++++++++-
xf86drmMode.c | 24 ++++++++++++++++--------
2 files changed, 24 insertions(+), 9 deletions(-)

Upstream: cgit.freedesktop.org


  • Share