SurfaceFlinger: work around a driver bug

Change-Id: I4490f308b12e9b6fda2ea7255eb19d867d6d008c
This commit is contained in:
Jamie Gennis 2012-12-07 15:42:15 -08:00
parent 6eea6fb259
commit 46b6bce198

View File

@ -511,6 +511,9 @@ void Layer::onPostComposition() {
mFrameTracker.setDesiredPresentTime(desiredPresentTime); mFrameTracker.setDesiredPresentTime(desiredPresentTime);
sp<Fence> frameReadyFence = mSurfaceTexture->getCurrentFence(); sp<Fence> frameReadyFence = mSurfaceTexture->getCurrentFence();
// XXX: Temporarily don't use the fence from the SurfaceTexture to
// work around a driver bug.
frameReadyFence.clear();
if (frameReadyFence != NULL) { if (frameReadyFence != NULL) {
mFrameTracker.setFrameReadyFence(frameReadyFence); mFrameTracker.setFrameReadyFence(frameReadyFence);
} else { } else {
@ -521,6 +524,9 @@ void Layer::onPostComposition() {
const HWComposer& hwc = mFlinger->getHwComposer(); const HWComposer& hwc = mFlinger->getHwComposer();
sp<Fence> presentFence = hwc.getDisplayFence(HWC_DISPLAY_PRIMARY); sp<Fence> 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) { if (presentFence != NULL) {
mFrameTracker.setActualPresentFence(presentFence); mFrameTracker.setActualPresentFence(presentFence);
} else { } else {