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/radeon_present.c | |
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/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 59f3c6b8..29800fec 100644 --- a/src/radeon_present.c +++ b/src/radeon_present.c @@ -349,7 +349,8 @@ radeon_present_flip(RRCrtcPtr crtc, uint64_t event_id, uint64_t target_msc, event_id, event, crtc_id, radeon_present_flip_event, radeon_present_flip_abort, - sync_flip ? FLIP_VSYNC : FLIP_ASYNC); + sync_flip ? FLIP_VSYNC : FLIP_ASYNC, + target_msc); if (!ret) xf86DrvMsg(scrn->scrnIndex, X_ERROR, "present flip failed\n"); else @@ -392,7 +393,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, FLIP_VSYNC)) + radeon_present_flip_abort, FLIP_VSYNC, 0)) return; modeset: |