diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-07-06 15:25:33 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2016-11-18 12:11:50 +0900 |
commit | 1106b2f773ad0611c729b27f4c192a26b43ef1e7 (patch) | |
tree | 6d4143ff48fd8fefa86b206b405ddc945656fe0d /src/drmmode_display.h | |
parent | aab80d2203efb8569b26dd02a1c651c792e1ef0c (diff) |
Use DRM_MODE_PAGE_FLIP_TARGET_ABSOLUTE/RELATIVE flags when available
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/drmmode_display.h')
-rw-r--r-- | src/drmmode_display.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/drmmode_display.h b/src/drmmode_display.h index 85bcad91..b8f553a4 100644 --- a/src/drmmode_display.h +++ b/src/drmmode_display.h @@ -133,6 +133,14 @@ enum drmmode_flip_sync { }; +extern int drmmode_page_flip_target_absolute(RADEONEntPtr pRADEONEnt, + drmmode_crtc_private_ptr drmmode_crtc, + uint32_t flags, uintptr_t drm_queue_seq, + uint32_t target_msc); +extern int drmmode_page_flip_target_relative(RADEONEntPtr pRADEONEnt, + drmmode_crtc_private_ptr drmmode_crtc, + uint32_t flags, uintptr_t drm_queue_seq, + uint32_t target_msc); extern Bool drmmode_pre_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, int cpp); extern void drmmode_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode); extern void drmmode_fini(ScrnInfoPtr pScrn, drmmode_ptr drmmode); @@ -159,7 +167,8 @@ Bool radeon_do_pageflip(ScrnInfoPtr scrn, ClientPtr client, uint32_t new_front_handle, uint64_t id, void *data, int ref_crtc_hw_id, radeon_drm_handler_proc handler, radeon_drm_abort_proc abort, - enum drmmode_flip_sync flip_sync); + enum drmmode_flip_sync flip_sync, + uint32_t target_msc); int drmmode_crtc_get_ust_msc(xf86CrtcPtr crtc, CARD64 *ust, CARD64 *msc); int drmmode_get_current_ust(int drm_fd, CARD64 *ust); |