From fa74ff03f5a80909425117700aee7648725ce013 Mon Sep 17 00:00:00 2001 From: Sky Zhou Date: Thu, 13 Apr 2017 21:41:24 +0000 Subject: Merge "PD#140059: fix ge2d process 2 different size layer performance problems." into n-amlogic --- diff --git a/hwc2/common/devices/PhysicalDevice.cpp b/hwc2/common/devices/PhysicalDevice.cpp index e07c16a..214480f 100644 --- a/hwc2/common/devices/PhysicalDevice.cpp +++ b/hwc2/common/devices/PhysicalDevice.cpp @@ -1019,6 +1019,12 @@ bool PhysicalDevice::layersStateCheck(int32_t renderMode, } } #endif + if (HWC2_TWO_LAYERS == layerNum + && (!Utils::compareSize(sourceCrop[0], sourceCrop[1]) + || !Utils::compareSize(displayFrame[0], displayFrame[1]))) { + DTRACE("when 2 layer's size is difference, ge2d compose can not process!"); + return false; + } } #endif -- cgit