hwc: Fix issue with Layercache
When MDP comp is done the layer cache
is not reset. Calling the layer cache updated
after MDP comp is configured ensures that the
cache is reset correctly.
Change-Id: I9fc3ddd713ceac4be708e33782c3661e758dfcb9
diff --git a/libhwcomposer/hwc.cpp b/libhwcomposer/hwc.cpp
index f21d449..a0a0c82 100644
--- a/libhwcomposer/hwc.cpp
+++ b/libhwcomposer/hwc.cpp
@@ -127,8 +127,8 @@
if(!MDPComp::configure(ctx, list)) {
VideoOverlay::prepare(ctx, list, HWC_DISPLAY_PRIMARY);
FBUpdate::prepare(ctx, fbLayer, HWC_DISPLAY_PRIMARY);
- ctx->mLayerCache[HWC_DISPLAY_PRIMARY]->updateLayerCache(list);
}
+ ctx->mLayerCache[HWC_DISPLAY_PRIMARY]->updateLayerCache(list);
}
}
return 0;