mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
With the atomic API, it is possible that a single commit affects multiple crtcs. If the user requests an event with that commit, one event will be sent for each CRTC, but it is not possible to distinguish which crtc an event is for in user space. To solve this, the reserved field in struct drm_vblank_event is repurposed to include the crtc_id which the event is for. The DRM_CAP_CRTC_IN_VBLANK_EVENT is added to allow userspace to query if the crtc field will be set properly. [daniels: Rebased, using Maarten's forward-port.] Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> Signed-off-by: Daniel Stone <daniels@collabora.com> Cc: Maarten Lankhorst <maarten.lankhorst@intel.com> Reviewed-by: Sean Paul <seanpaul@chromium.org> (am from https://patchwork.kernel.org/patch/9662099/) Change-Id: Ibe6949782e5df5363d4eaa3e98b3ff413239cf26 Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>