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:
parent
3ef9138efd
commit
33292ab1ae
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user