release and clear next_bo when pageFlip fails
authorElvis Lee <kwangwoong.lee@lge.com>
Sat, 21 Jul 2012 03:45:41 +0000 (12:45 +0900)
committerQt by Nokia <qt-info@nokia.com>
Sat, 21 Jul 2012 09:17:17 +0000 (11:17 +0200)
pageFlip failure makes starvation in waitForPageFlipComplete.

Change-Id: Ifbcdda2a4138753f475e4c37767058014cc4230b
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
src/plugins/platforms/kms/qkmsscreen.cpp

index abf86d4..9c17c72 100644 (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()