diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-09-28 10:02:10 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-09-28 10:02:10 +0300 |
commit | 02c3df2efcd209afa1f55de2b652e501dfd7b865 (patch) | |
tree | c5906ef89bfc02792a516ecbac8c67064e508a67 /db | |
parent | 162b3772ad3ce4e100eab476315e25720777de1d (diff) |
db: use atomic pageflip
Diffstat (limited to 'db')
-rw-r--r-- | db/db.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -123,14 +123,12 @@ static void do_flip(Output* out) AtomicReq ctx(card); - // XXX - //ctx.add(plane, card.get_prop("CRTC_X"), 50); - //ctx.add(plane, card.get_prop("CRTC_Y"), 50); + ctx.add(crtc, card.get_prop("FB_ID"), fb->id()); r = ctx.test(); ASSERT(r == 0); - r = ctx.commit(); + r = ctx.commit(out); ASSERT(r == 0); } else { int r = drmModePageFlip(card.fd(), crtc->id(), fb->id(), DRM_MODE_PAGE_FLIP_EVENT, out); |