linux/include/uapi/drm
Ander Conselvan de Oliveira 398e38d802 FROMLIST: drm: Pass CRTC ID in userspace vblank events
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>
2017-05-11 15:38:50 +08:00
..
amdgpu_drm.h drm/amdgpu: update the core VI support for Stoney 2015-10-21 12:21:31 -04:00
armada_drm.h DRM: Armada: Add Armada DRM driver 2013-10-12 10:13:40 +01:00
drm_fourcc.h drm: add 10bit support for yuv format 2016-11-24 12:59:29 +08:00
drm_mode.h drm: redefine YCbCr420 flag to bits 23:24 2017-03-07 15:29:43 +08:00
drm_sarea.h
drm.h FROMLIST: drm: Pass CRTC ID in userspace vblank events 2017-05-11 15:38:50 +08:00
exynos_drm.h drm/exynos: use drm generic mmap interface 2014-09-20 01:00:13 +09:00
i810_drm.h drm/i810_drm.h: include drm/drm.h 2015-10-16 15:51:00 +02:00
i915_drm.h drm/i915: Wa32bitGeneralStateOffset & Wa32bitInstructionBaseOffset 2015-10-01 18:12:17 +02:00
Kbuild virtio-gpu: add 3d/virgl support 2015-10-16 10:44:02 +02:00
mga_drm.h
msm_drm.h drm/msm: use __s32, __s64, __u32 and __u64 from linux/types.h for uabi 2015-06-11 13:11:05 -04:00
nouveau_drm.h drm/nouveau: remove unnecessary usage of object handles 2015-11-03 15:02:18 +10:00
omap_drm.h drm/omap: move out of staging 2013-02-16 17:38:06 -05:00
qxl_drm.h drm: add new QXL driver. (v1.4) 2013-04-12 13:51:07 +10:00
r128_drm.h r128_drm.h: include drm/drm.h 2015-10-16 15:50:59 +02:00
radeon_drm.h rk: revert to v3.10 2015-11-11 15:57:28 +08:00
rockchip_drm.h drm/rockchip: rga: add buf flush flag 2017-04-19 08:42:21 +08:00
savage_drm.h savage_drm.h: include <drm/drm.h> 2015-10-16 15:50:59 +02:00
sis_drm.h include/uapi/drm/sis_drm.h: move sis_file_private to drivers/gpu/drm/sis/sis_drv.h 2015-10-16 11:27:46 +10:00
tegra_drm.h rk: revert to v3.10 2015-11-11 15:57:28 +08:00
via_drm.h via_drm.h: move struct via_file_private definition to drivers/gpu/drm/via/via_drv.h 2015-10-16 11:27:49 +10:00
virtgpu_drm.h virtio-gpu: add 3d/virgl support 2015-10-16 10:44:02 +02:00
vmwgfx_drm.h drm/vmwgfx: Fix copyright headers 2015-08-12 10:06:56 -07:00