summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-07-12 15:27:52 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-07-13 18:07:42 -0500
commit20def4da21e9fcea3d6ab910493b529ab371e3f4 (patch)
treeac68f362180d8e1595f413ed0f0fc7f89bb70b1a /src/lib/ecore_drm2/ecore_drm2.c
parent7e0beea3f599c56dd2a99d4eaec820723cf6bda2 (diff)
ecore_drm2: Add a query for the next vblank time
I guess this is a feature, and we're deep in freeze, but: a) this is critical for fixing T5462 properly without any side effects. b) ecore_drm2 is all beta api c) this should only affect wayland users ref T5462
Diffstat (limited to 'src/lib/ecore_drm2/ecore_drm2.c')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2.c b/src/lib/ecore_drm2/ecore_drm2.c
index a43b113..526ea4a 100644
--- a/src/lib/ecore_drm2/ecore_drm2.c
+++ b/src/lib/ecore_drm2/ecore_drm2.c
@@ -46,6 +46,7 @@ int (*sym_drmModePageFlip)(int fd, uint32_t crtc_id, uint32_t fb_id, uint32_t fl
46int (*sym_drmModeDirtyFB)(int fd, uint32_t bufferId, drmModeClipPtr clips, uint32_t num_clips) = NULL; 46int (*sym_drmModeDirtyFB)(int fd, uint32_t bufferId, drmModeClipPtr clips, uint32_t num_clips) = NULL;
47int (*sym_drmModeCrtcSetGamma)(int fd, uint32_t crtc_id, uint32_t size, uint16_t *red, uint16_t *green, uint16_t *blue) = NULL; 47int (*sym_drmModeCrtcSetGamma)(int fd, uint32_t crtc_id, uint32_t size, uint16_t *red, uint16_t *green, uint16_t *blue) = NULL;
48int (*sym_drmPrimeFDToHandle)(int fd, int prime_fd, uint32_t *handle) = NULL; 48int (*sym_drmPrimeFDToHandle)(int fd, int prime_fd, uint32_t *handle) = NULL;
49int (*sym_drmWaitVBlank)(int fd, drmVBlank *vbl) = NULL;
49 50
50EAPI int ECORE_DRM2_EVENT_OUTPUT_CHANGED = -1; 51EAPI int ECORE_DRM2_EVENT_OUTPUT_CHANGED = -1;
51EAPI int ECORE_DRM2_EVENT_ACTIVATE = -1; 52EAPI int ECORE_DRM2_EVENT_ACTIVATE = -1;
@@ -82,7 +83,7 @@ _ecore_drm2_link(void)
82 83
83 SYM(drm_lib, drmIoctl); 84 SYM(drm_lib, drmIoctl);
84 /* SYM(drm_lib, drmClose); */ 85 /* SYM(drm_lib, drmClose); */
85 /* SYM(drm_lib, drmWaitVBlank); */ 86 SYM(drm_lib, drmWaitVBlank);
86 SYM(drm_lib, drmHandleEvent); 87 SYM(drm_lib, drmHandleEvent);
87 SYM(drm_lib, drmGetVersion); 88 SYM(drm_lib, drmGetVersion);
88 SYM(drm_lib, drmFreeVersion); 89 SYM(drm_lib, drmFreeVersion);