Commit bbfae8dd authored by Henri Verbeet's avatar Henri Verbeet Committed by Jeremy White
Browse files

Implement page flips.


Signed-off-by: default avatarHenri Verbeet <hverbeet@codeweavers.com>
parent 961df8eb
......@@ -162,19 +162,24 @@ dummy_present_flush(WindowRec * window)
static Bool
dummy_present_check_flip(RRCrtcRec * crtc, WindowRec * window, PixmapRec * pixmap, Bool sync_flip)
{
return FALSE;
const ScrnInfoRec *scrn = xf86ScreenToScrn(crtc->pScreen);
const DUMMYRec *dummy = scrn->driverPrivate;
return !dummy->swCursor;
}
static Bool
dummy_present_flip(RRCrtcRec * crtc, uint64_t event_id,
uint64_t target_msc, PixmapRec * pixmap, Bool sync_flip)
{
return FALSE;
glamor_block_handler(crtc->pScreen);
return dummy_present_queue_vblank(crtc, event_id, target_msc) == Success;
}
static void
dummy_present_unflip(ScreenRec * screen, uint64_t event_id)
{
glamor_block_handler(screen);
present_event_notify(event_id, 0, 0);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment