diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-05-10 15:47:55 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2016-05-12 16:28:49 +0900 |
commit | 744ac5faff7f58e26fa76974b6bdc345ea4c7c79 (patch) | |
tree | d9688d4af867a79981999f4f77bc0fac293d9bd0 /src/amdgpu_present.c | |
parent | 4822ec7a23d2253c88bc403f17abb6d7a053528c (diff) |
Add support for async flips to radeon_do_pageflip
Will be used by the next change. No functional change here.
(Ported from radeon commit 90a915c62d012e99193833aecc93974e68880c60)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/amdgpu_present.c')
-rw-r--r-- | src/amdgpu_present.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/amdgpu_present.c b/src/amdgpu_present.c index 4aa0708..e39b2d2 100644 --- a/src/amdgpu_present.c +++ b/src/amdgpu_present.c @@ -311,7 +311,8 @@ amdgpu_present_flip(RRCrtcPtr crtc, uint64_t event_id, uint64_t target_msc, ret = amdgpu_do_pageflip(scrn, AMDGPU_DRM_QUEUE_CLIENT_DEFAULT, pixmap, event_id, event, crtc_id, amdgpu_present_flip_event, - amdgpu_present_flip_abort); + amdgpu_present_flip_abort, + FLIP_VSYNC); if (!ret) xf86DrvMsg(scrn->scrnIndex, X_ERROR, "present flip failed\n"); else @@ -348,7 +349,7 @@ amdgpu_present_unflip(ScreenPtr screen, uint64_t event_id) if (amdgpu_do_pageflip(scrn, AMDGPU_DRM_QUEUE_CLIENT_DEFAULT, pixmap, event_id, event, -1, amdgpu_present_flip_event, - amdgpu_present_flip_abort)) + amdgpu_present_flip_abort, FLIP_VSYNC)) return; modeset: |