Lines Matching refs:mM2mMPPs
46 ExynosMPPVector ExynosResourceManager::mM2mMPPs; member in ExynosResourceManager
137 mM2mMPPs.add(exynosMPP); in ExynosResourceManager()
140 ALOGI("mOtfMPPs(%zu), mM2mMPPs(%zu)", mOtfMPPs.size(), mM2mMPPs.size()); in ExynosResourceManager()
149 for (uint32_t i = 0; i < mM2mMPPs.size(); i++) in ExynosResourceManager()
153 mM2mMPPs[i]->dump(dumpMPP); in ExynosResourceManager()
174 for (int32_t i = mM2mMPPs.size(); i-- > 0;) { in ~ExynosResourceManager()
175 ExynosMPP *exynosMPP = mM2mMPPs[i]; in ~ExynosResourceManager()
178 mM2mMPPs.clear(); in ~ExynosResourceManager()
186 for (int32_t i = mM2mMPPs.size(); i-- > 0;) { in reloadResourceForHWFC()
187 ExynosMPP *exynosMPP = mM2mMPPs[i]; in reloadResourceForHWFC()
198 for (int32_t i = mM2mMPPs.size(); i-- > 0;) { in setTargetDisplayLuminance()
199 ExynosMPP *exynosMPP = mM2mMPPs[i]; in setTargetDisplayLuminance()
210 for (int32_t i = mM2mMPPs.size(); i-- > 0;) { in setTargetDisplayDevice()
211 ExynosMPP *exynosMPP = mM2mMPPs[i]; in setTargetDisplayDevice()
254 for (uint32_t i = 0; i < mM2mMPPs.size(); i++) { in reallocDstBufs()
255 if (mM2mMPPs[i]->needPreAllocation()) in reallocDstBufs()
257 if (needDstRealloc(Xres, Yres, mM2mMPPs[i])) { in reallocDstBufs()
258 … HDEBUGLOGD(eDebugBuf, "M2M dst alloc : %d Realloc Start ++++++", mM2mMPPs[i]->mLogicalType); in reallocDstBufs()
261 …f, "M2M dst alloc : %d MPP's DST Realloc is not needed : Size is same", mM2mMPPs[i]->mLogicalType); in reallocDstBufs()
318 for (uint32_t i = 0; i < mM2mMPPs.size(); i++) { in doAllocDstBufs()
319 if (mM2mMPPs[i]->needPreAllocation()) in doAllocDstBufs()
321 mM2mMPPs[i]->mFreeOutBufFlag = false; in doAllocDstBufs()
322 for (uint32_t index = 0; index < NUM_MPP_DST_BUFS(mM2mMPPs[i]->mLogicalType); index++) { in doAllocDstBufs()
324 __func__, index, mM2mMPPs[i]->mDstImgs[index].bufferHandle, Xres, Yres); in doAllocDstBufs()
325 uint32_t bufAlign = mM2mMPPs[i]->getOutBufAlign(); in doAllocDstBufs()
326 ret = mM2mMPPs[i]->allocOutBuf(ALIGN_UP(Xres, bufAlign), in doAllocDstBufs()
334 mM2mMPPs[i]->mPrevAssignedDisplayType = HWC_DISPLAY_PRIMARY; in doAllocDstBufs()
336 mM2mMPPs[i]->setDstAllocSize(Xres, Yres); in doAllocDstBufs()
660 for (uint32_t i = 0; i < mM2mMPPs.size(); i++) { in assignResourceInternal()
661 if (mM2mMPPs[i]->mPhysicalType == MPP_G2D) in assignResourceInternal()
664 mM2mMPPs[i]->dump(dumpMPP); in assignResourceInternal()
940 for (uint32_t i = 0; i < mM2mMPPs.size(); i++) { in resetAssignedResources()
941 if (mM2mMPPs[i]->mAssignedDisplay != display) in resetAssignedResources()
944 ((mM2mMPPs[i]->mLogicalType == MPP_LOGICAL_G2D_RGB) || in resetAssignedResources()
945 (mM2mMPPs[i]->mLogicalType == MPP_LOGICAL_G2D_COMBO))) in resetAssignedResources()
952 mM2mMPPs[i]->resetAssignedState(); in resetAssignedResources()
985 for (uint32_t i = 0; i < mM2mMPPs.size(); i++) { in assignCompositionTarget()
987 (mM2mMPPs[i]->mLogicalType != MPP_LOGICAL_G2D_RGB)) in assignCompositionTarget()
990 (mM2mMPPs[i]->mLogicalType != MPP_LOGICAL_G2D_COMBO)) in assignCompositionTarget()
992 if (mM2mMPPs[i]->isAssignableState(display, src_img, dst_img)) { in assignCompositionTarget()
996 compositionInfo->mM2mMPP = mM2mMPPs[i]; in assignCompositionTarget()
1219 for (ExynosMPP *m : mM2mMPPs) { in getCandidateScalingM2mMPPOutImages()
1228 for (ExynosMPP *m : mM2mMPPs) { in getCandidateScalingM2mMPPOutImages()
1507 for (uint32_t j = 0; j < mM2mMPPs.size(); j++) { in assignLayer()
1509 (mM2mMPPs[j]->mLogicalType == MPP_LOGICAL_G2D_COMBO)) in assignLayer()
1512 (mM2mMPPs[j]->mLogicalType == MPP_LOGICAL_G2D_RGB)) in assignLayer()
1519 (mM2mMPPs[j]->mLogicalType != MPP_LOGICAL_G2D_RGB) && in assignLayer()
1520 (mM2mMPPs[j]->mLogicalType != MPP_LOGICAL_G2D_COMBO)) { in assignLayer()
1526 bool isAssignableState = mM2mMPPs[j]->isAssignableState(display, src_img, dst_img); in assignLayer()
1530 mM2mMPPs[j]->mName.c_str(), in assignLayer()
1531 (layer->mSupportedMPPFlag & mM2mMPPs[j]->mLogicalType), isAssignableState); in assignLayer()
1533 float totalUsedCapa = ExynosResourceManager::getResourceUsedCapa(*mM2mMPPs[j]); in assignLayer()
1535 if ((mM2mMPPs[j]->mLogicalType != MPP_LOGICAL_G2D_RGB) && in assignLayer()
1536 (mM2mMPPs[j]->mLogicalType != MPP_LOGICAL_G2D_COMBO)) { in assignLayer()
1568 if (((isSupported = mM2mMPPs[j]->isSupported(*display, m2m_src_img, in assignLayer()
1571 mM2mMPPs[j]->hasEnoughCapa(display, m2m_src_img, otf_src_img, in assignLayer()
1576 mM2mMPPs[j]->mName.c_str(), -isSupported, isAssignableFlag); in assignLayer()
1605 *m2mMPP = mM2mMPPs[j]; in assignLayer()
1613 if ((layer->mSupportedMPPFlag & mM2mMPPs[j]->mLogicalType) && in assignLayer()
1614 ((isAssignableFlag = mM2mMPPs[j]->hasEnoughCapa(display, src_img, dst_img, in assignLayer()
1616 *m2mMPP = mM2mMPPs[j]; in assignLayer()
1622 mM2mMPPs[j]->mName.c_str(), layer->mSupportedMPPFlag, in assignLayer()
1892 for (uint32_t j = 0; j < mM2mMPPs.size(); j++) { in updateSupportedMPPFlag()
1893 if ((ret = mM2mMPPs[j]->isSupported(*display, src_img, dst_img)) == NO_ERROR) { in updateSupportedMPPFlag()
1894 layer->mSupportedMPPFlag |= mM2mMPPs[j]->mLogicalType; in updateSupportedMPPFlag()
1895 HDEBUGLOGD(eDebugResourceAssigning, "\t%s: supported", mM2mMPPs[j]->mName.c_str()); in updateSupportedMPPFlag()
1898 … ((ret = mM2mMPPs[j]->isSupported(*display, src_img, dst_img_yuv)) == NO_ERROR)) { in updateSupportedMPPFlag()
1899 layer->mSupportedMPPFlag |= mM2mMPPs[j]->mLogicalType; in updateSupportedMPPFlag()
1901 mM2mMPPs[j]->mName.c_str()); in updateSupportedMPPFlag()
1906 mM2mMPPs[j]->mName.c_str(), -ret); in updateSupportedMPPFlag()
1908 if (layer->mCheckMPPFlag.find(mM2mMPPs[j]->mLogicalType) != in updateSupportedMPPFlag()
1910 checkFlag = layer->mCheckMPPFlag.at(mM2mMPPs[j]->mLogicalType); in updateSupportedMPPFlag()
1913 layer->mCheckMPPFlag[mM2mMPPs[j]->mLogicalType] = checkFlag; in updateSupportedMPPFlag()
1936 for (uint32_t i = 0; i < mM2mMPPs.size(); i++) { in resetResources()
1937 mM2mMPPs[i]->resetMPP(); in resetResources()
1940 mM2mMPPs[i]->dump(dumpMPP); in resetResources()
2008 for (auto& mpp : mM2mMPPs) { in updatePreAssignDisplayList()
2055 for (uint32_t i = 0; i < mM2mMPPs.size(); i++) { in preAssignResources()
2056 if (mM2mMPPs[i]->mEnable == false) { in preAssignResources()
2057 mM2mMPPs[i]->reserveMPP(); in preAssignResources()
2061 if (mResourceReserved & mM2mMPPs[i]->mLogicalType) { in preAssignResources()
2064 mM2mMPPs[i]->reserveMPP(); in preAssignResources()
2067 HDEBUGLOGD(eDebugResourceAssigning, "\t%s check, 0x%8x", mM2mMPPs[i]->mName.c_str(), in preAssignResources()
2068 mM2mMPPs[i]->mPreAssignDisplayList[displayMode]); in preAssignResources()
2069 if (mM2mMPPs[i]->mPreAssignDisplayList[displayMode] != 0) { in preAssignResources()
2073 …int checkBit = mM2mMPPs[i]->mPreAssignDisplayList[displayMode] & display->getDisplayPreAssignBit(); in preAssignResources()
2083 mM2mMPPs[i]->reserveMPP(display->mDisplayId); in preAssignResources()
2087 mM2mMPPs[i]->reserveMPP(); in preAssignResources()
2100 for (uint32_t i = 0; i < mM2mMPPs.size(); i++) { in preAssignResources()
2103 mM2mMPPs[i]->dump(dumpMPP); in preAssignResources()
2165 for (uint32_t i = 0; i < mM2mMPPs.size(); i++) { in getExynosMPP()
2166 if (mM2mMPPs[i]->mLogicalType == type) in getExynosMPP()
2167 return mM2mMPPs[i]; in getExynosMPP()
2180 for (uint32_t i = 0; i < mM2mMPPs.size(); i++) { in getExynosMPP()
2181 if ((mM2mMPPs[i]->mPhysicalType == physicalType) && in getExynosMPP()
2182 (mM2mMPPs[i]->mPhysicalIndex == physicalIndex)) in getExynosMPP()
2183 return mM2mMPPs[i]; in getExynosMPP()
2196 for (uint32_t i = 0; i < mM2mMPPs.size(); i++) { in updateResourceState()
2197 if (mM2mMPPs[i]->mAssignedSources.size() == 0) in updateResourceState()
2198 mM2mMPPs[i]->requestHWStateChange(MPP_HW_STATE_IDLE); in updateResourceState()
2199 mM2mMPPs[i]->mPrevAssignedState = mM2mMPPs[i]->mAssignedState; in updateResourceState()
2232 for (uint32_t i = 0; i < mM2mMPPs.size(); i++) { in deliverPerformanceInfo()
2233 mpp = mM2mMPPs[i]; in deliverPerformanceInfo()
2264 for (uint32_t i = 0; i < mM2mMPPs.size(); i++) { in deliverPerformanceInfo()
2265 mpp = mM2mMPPs[i]; in deliverPerformanceInfo()
2348 for (uint32_t i = 0; i < mM2mMPPs.size(); i++) { in getResourceUsedCapa()
2349 if ((mpp.mPhysicalType == mM2mMPPs[i]->mPhysicalType) && in getResourceUsedCapa()
2350 (mpp.mPhysicalIndex == mM2mMPPs[i]->mPhysicalIndex)) { in getResourceUsedCapa()
2351 usedCapa += mM2mMPPs[i]->mUsedCapacity; in getResourceUsedCapa()
2372 for (uint32_t i = 0; i < mM2mMPPs.size(); i++) { in enableMPP()
2373 if ((mM2mMPPs[i]->mPhysicalType == physicalType) && in enableMPP()
2374 (mM2mMPPs[i]->mPhysicalIndex == physicalIndex) && in enableMPP()
2375 (mM2mMPPs[i]->mLogicalIndex == logicalIndex)) { in enableMPP()
2376 mM2mMPPs[i]->mEnable = !!(enable); in enableMPP()
2398 auto m2mMPP = std::find_if(mM2mMPPs.begin(), mM2mMPPs.end(), in setScaleDownRatio()
2400 findMpp = m2mMPP == mM2mMPPs.end() ? nullptr : *m2mMPP; in setScaleDownRatio()
2655 for (uint32_t i = 0; i < mM2mMPPs.size(); i++) { in updateRestrictions()
2657 mM2mMPPs[i]->updateAttr(); in updateRestrictions()
2658 mM2mMPPs[i]->setupRestriction(); in updateRestrictions()
2674 for (uint32_t i = 0; i < mM2mMPPs.size(); i++) { in hasHDR10PlusMPP()
2675 if (mM2mMPPs[i] == NULL) continue; in hasHDR10PlusMPP()
2676 if (mM2mMPPs[i]->mAttr & MPP_ATTR_HDR10PLUS) in hasHDR10PlusMPP()
2687 for (size_t i = 0; i < mM2mMPPs.size(); i++) { in getAssignedCapacity()
2688 if (mM2mMPPs[i]->mPhysicalType == physicalType) in getAssignedCapacity()
2689 totalCapacity += mM2mMPPs[i]->getAssignedCapacity(); in getAssignedCapacity()
2697 for (size_t i = 0; i < mM2mMPPs.size(); i++) { in getM2MCapa()
2698 if (mM2mMPPs[i]->mPhysicalType == physicalType) in getM2MCapa()
2699 return mM2mMPPs[i]->mCapacity; in getM2MCapa()
2718 for (auto mpp : mM2mMPPs) { in dump()
2742 for (size_t i = 0; i < mM2mMPPs.size(); i++) { in setM2MCapa()
2743 if (mM2mMPPs[i]->mPhysicalType == physicalType) in setM2MCapa()
2744 mM2mMPPs[i]->mCapacity = capa; in setM2MCapa()
2777 for (uint32_t i = 0; i < mM2mMPPs.size(); i++) { in updateSupportWCG()
2778 if (mM2mMPPs[i] == NULL) continue; in updateSupportWCG()
2779 if (mM2mMPPs[i]->mAttr & (MPP_ATTR_WCG | MPP_ATTR_HDR10)) mDeviceSupportWCG = true; in updateSupportWCG()