release and clear next_bo when pageFlip fails

pageFlip failure makes starvation in waitForPageFlipComplete.

Change-Id: Ifbcdda2a4138753f475e4c37767058014cc4230b
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
This commit is contained in:
Elvis Lee 2012-07-21 12:45:41 +09:00 committed by Qt by Nokia
parent 3ef9138efd
commit 33292ab1ae

View File

@ -233,7 +233,11 @@ void QKmsScreen::performPageFlip()
fb_id,
DRM_MODE_PAGE_FLIP_EVENT, this);
if (pageFlipStatus)
{
qWarning("Pageflip status: %d", pageFlipStatus);
gbm_surface_release_buffer(m_gbmSurface, m_next_bo);
m_next_bo = 0;
}
}
void QKmsScreen::handlePageFlipped()