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
This commit is contained in:
Prabhanjan Kandula
2013-06-18 17:37:22 +05:30
parent 2a0c912658
commit 9fb032abef

View File

@@ -430,6 +430,14 @@ bool MDPComp::isFullFrameDoable(hwc_context_t *ctx,
__FUNCTION__); __FUNCTION__);
return false; 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. //If all above hard conditions are met we can do full or partial MDP comp.