hwc: remove gpu fallback when there is rotation
A sw workaround was created in mdp3 so composition of layers with
rotation and roi that is not divisible by 16 is now possible to
be done by ppp.
Change-Id: Iada3707da1b85e58dad398b8271d7a26725e0d22
diff --git a/libhwcomposer/hwc_copybit.cpp b/libhwcomposer/hwc_copybit.cpp
index dbb4413..3348ae0 100644
--- a/libhwcomposer/hwc_copybit.cpp
+++ b/libhwcomposer/hwc_copybit.cpp
@@ -182,16 +182,10 @@
// Following are MDP3 limitations for which we
// need to fallback to GPU composition:
- // 1. HW issues with mdp3 and rotation.
- // 2. Plane alpha is not supported by MDP3.
+ // 1. Plane alpha is not supported by MDP3.
if (qdutils::MDPVersion::getInstance().getMDPVersion() < 400) {
for (int i = ctx->listStats[dpy].numAppLayers-1; i >= 0 ; i--) {
hwc_layer_1_t *layer = (hwc_layer_1_t *) &list->hwLayers[i];
- if ((layer->transform & (HAL_TRANSFORM_FLIP_H |
- HAL_TRANSFORM_FLIP_V | HAL_TRANSFORM_ROT_90)) &&
- ((layer->displayFrame.bottom - layer->displayFrame.top) % 16 ||
- (layer->displayFrame.right - layer->displayFrame.left) % 16))
- return true;
if (layer->planeAlpha != 0xFF)
return true;
}