hwc: Use one GPU composition round for video transition
When external is active and primary has all ViG pipes, a video
playback may be starved of pipes on external. Use one GPU comp.
round for high-end targets as well.
Change-Id: I7f2e1d4a6a98a04e0fc1ec917ecedbb6ce56d067
diff --git a/libhwcomposer/hwc_mdpcomp.cpp b/libhwcomposer/hwc_mdpcomp.cpp
index 3743a8b..5bd7931 100644
--- a/libhwcomposer/hwc_mdpcomp.cpp
+++ b/libhwcomposer/hwc_mdpcomp.cpp
@@ -531,12 +531,7 @@
if(!isEnabled()) {
ALOGD_IF(isDebug(),"%s: MDP Comp. not enabled.", __FUNCTION__);
ret = false;
- } else if((qdutils::MDPVersion::getInstance().is8x26() ||
- qdutils::MDPVersion::getInstance().is8x16() ||
- qdutils::MDPVersion::getInstance().is8x39() ||
- qdutils::MDPVersion::getInstance().is8x52()) &&
- ctx->mVideoTransFlag &&
- isSecondaryConnected(ctx)) {
+ } else if(ctx->mVideoTransFlag && isSecondaryConnected(ctx)) {
//1 Padding round to shift pipes across mixers
ALOGD_IF(isDebug(),"%s: MDP Comp. video transition padding round",
__FUNCTION__);