author | Sky Zhou <sky.zhou@amlogic.com> | 2017-04-13 21:41:24 (GMT) |
---|---|---|
committer | Gerrit Code Review <gituser@git.myamlogic.com> | 2017-04-13 21:41:24 (GMT) |
commit | fa74ff03f5a80909425117700aee7648725ce013 (patch) | |
tree | 073fe9c6ca4a3ee6e10a50b7d66fb0cf3a91395d | |
parent | 01b5b8d4a415850d01d9b07b406fb268b675da14 (diff) | |
parent | eef639ac65abd3fe09f836ec453d666a59f2ea17 (diff) | |
download | hwcomposer-fa74ff03f5a80909425117700aee7648725ce013.zip hwcomposer-fa74ff03f5a80909425117700aee7648725ce013.tar.gz hwcomposer-fa74ff03f5a80909425117700aee7648725ce013.tar.bz2 |
Merge "PD#140059: fix ge2d process 2 different size layer performance problems." into n-amlogic
-rw-r--r-- | hwc2/common/devices/PhysicalDevice.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 |