From: Michel Dänzer <michel.daenzer@xxxxxxx> Patches 1-4 are preparatory cleanups. Patches 5 & 6 are minor behaviour changes needed for the main functional change. Patches 7 & 8 add new function parameters which are needed by patch 9, the main functional change. Patch 10 just enables it for DRI2 as well. Michel Dänzer (10): Remove drmmode_crtc->scanout_destroy[] array Pass reference CRTC to radeon_do_pageflip directly Create drmmode_wait_vblank helper Create drmmode_crtc_wait_pending_event helper macro Wait for pending flips synchronously before turning off a CRTC Handle multiple "pending" Present flips Add source drawable parameter to radeon_scanout_do_update Pass extents to radeon_scanout_do_update Always allow Present page flipping with TearFree Always allow DRI2 page flipping with TearFree man/radeon.man | 6 +- src/drmmode_display.c | 244 +++++++++++++++++++++++++++----------------------- src/drmmode_display.h | 27 ++++-- src/radeon.h | 5 +- src/radeon_dri2.c | 109 +++++++--------------- src/radeon_kms.c | 106 ++++++++++++---------- src/radeon_present.c | 106 ++++++++++++++-------- src/radeon_video.c | 2 +- 8 files changed, 316 insertions(+), 289 deletions(-) -- 2.14.1