hwcomposer: 8x26-1080p: dont allow mdp comp with HFLIP.
If an incoming layer has HFLIP tranform it needs two lines of
SMP buffer(or latency buffer). For panels with width greater than
1k this is costly. Fallback to GPU if RGB layer transform has HFLIP.
Change-Id: I9de63bf088d6afa0924ece7ac75e68f0bab7a6b5
diff --git a/libhwcomposer/hwc_mdpcomp.cpp b/libhwcomposer/hwc_mdpcomp.cpp
index 720b1c6..f0465eb 100644
--- a/libhwcomposer/hwc_mdpcomp.cpp
+++ b/libhwcomposer/hwc_mdpcomp.cpp
@@ -430,6 +430,14 @@
__FUNCTION__);
return false;
}
+
+ //For 8x26 with panel width>1k, if RGB layer needs HFLIP fail mdp comp
+ // may not need it if Gfx pre-rotation can handle all flips & rotations
+ if(qdutils::MDPVersion::getInstance().is8x26() &&
+ (ctx->dpyAttr[mDpy].xres > 1024) &&
+ (layer->transform & HWC_TRANSFORM_FLIP_H) &&
+ (!isYuvBuffer(hnd)))
+ return false;
}
//If all above hard conditions are met we can do full or partial MDP comp.