summaryrefslogtreecommitdiff
path: root/src/radeon_dri2.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-07-06 15:25:33 +0900
committerMichel Dänzer <michel@daenzer.net>2016-11-18 12:11:50 +0900
commit1106b2f773ad0611c729b27f4c192a26b43ef1e7 (patch)
tree6d4143ff48fd8fefa86b206b405ddc945656fe0d /src/radeon_dri2.c
parentaab80d2203efb8569b26dd02a1c651c792e1ef0c (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_dri2.c')
-rw-r--r--src/radeon_dri2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
index 81126706..860ff290 100644
--- a/src/radeon_dri2.c
+++ b/src/radeon_dri2.c
@@ -678,7 +678,8 @@ radeon_dri2_schedule_flip(xf86CrtcPtr crtc, ClientPtr client,
RADEON_DRM_QUEUE_ID_DEFAULT, flip_info,
ref_crtc_hw_id,
radeon_dri2_flip_event_handler,
- radeon_dri2_flip_event_abort, FLIP_VSYNC)) {
+ radeon_dri2_flip_event_abort, FLIP_VSYNC,
+ target_msc - radeon_get_msc_delta(draw, crtc))) {
info->drmmode.dri2_flipping = TRUE;
return TRUE;
}