From 46b6bce198c81ce9a4e0583e876d080ad48db003 Mon Sep 17 00:00:00 2001 From: Jamie Gennis Date: Fri, 7 Dec 2012 15:42:15 -0800 Subject: [PATCH] SurfaceFlinger: work around a driver bug Change-Id: I4490f308b12e9b6fda2ea7255eb19d867d6d008c --- services/surfaceflinger/Layer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index 6bed20a3b..b6aa0058d 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -511,6 +511,9 @@ void Layer::onPostComposition() { mFrameTracker.setDesiredPresentTime(desiredPresentTime); sp frameReadyFence = mSurfaceTexture->getCurrentFence(); + // XXX: Temporarily don't use the fence from the SurfaceTexture to + // work around a driver bug. + frameReadyFence.clear(); if (frameReadyFence != NULL) { mFrameTracker.setFrameReadyFence(frameReadyFence); } else { @@ -521,6 +524,9 @@ void Layer::onPostComposition() { const HWComposer& hwc = mFlinger->getHwComposer(); sp presentFence = hwc.getDisplayFence(HWC_DISPLAY_PRIMARY); + // XXX: Temporarily don't use the present fence from HWC to work + // around a driver bug. + presentFence.clear(); if (presentFence != NULL) { mFrameTracker.setActualPresentFence(presentFence); } else {