diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-03-15 16:42:16 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2016-04-12 17:46:12 +0900 |
commit | 90a915c62d012e99193833aecc93974e68880c60 (patch) | |
tree | 0a62ede5f2d2c6ae4c5c7a4fe036e22c262d4e35 /src/radeon_present.c | |
parent | ba8b6288c8e6fc4be5d7144ecbe9a1f241881674 (diff) |
Add support for async flips to radeon_do_pageflip
Will be used by the next change. No functional change here.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon_present.c')
-rw-r--r-- | src/radeon_present.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/radeon_present.c b/src/radeon_present.c index 8988fc6c..c012fedd 100644 --- a/src/radeon_present.c +++ b/src/radeon_present.c @@ -338,7 +338,8 @@ radeon_present_flip(RRCrtcPtr crtc, uint64_t event_id, uint64_t target_msc, ret = radeon_do_pageflip(scrn, RADEON_DRM_QUEUE_CLIENT_DEFAULT, handle, event_id, event, crtc_id, radeon_present_flip_event, - radeon_present_flip_abort); + radeon_present_flip_abort, + FLIP_VSYNC); if (!ret) xf86DrvMsg(scrn->scrnIndex, X_ERROR, "present flip failed\n"); else @@ -381,7 +382,7 @@ radeon_present_unflip(ScreenPtr screen, uint64_t event_id) if (radeon_do_pageflip(scrn, RADEON_DRM_QUEUE_CLIENT_DEFAULT, handle, event_id, event, -1, radeon_present_flip_event, - radeon_present_flip_abort)) + radeon_present_flip_abort, FLIP_VSYNC)) return; modeset: |