Lines Matching refs:mDpy

61 MDPComp::MDPComp(int dpy) : mDpy(dpy), mModeOn(false), mPrevModeOn(false) {  in MDPComp()
70 (mDpy == 0) ? "\"PRIMARY\"" : in dump()
71 (mDpy == 1) ? "\"EXTERNAL\"" : "\"VIRTUAL\""); in dump()
78 if(isDisplaySplit(ctx, mDpy)) { in dump()
81 ctx->listStats[mDpy].lRoi.left, ctx->listStats[mDpy].lRoi.top, in dump()
82 ctx->listStats[mDpy].lRoi.right, in dump()
83 ctx->listStats[mDpy].lRoi.bottom, in dump()
84 ctx->listStats[mDpy].rRoi.left,ctx->listStats[mDpy].rRoi.top, in dump()
85 ctx->listStats[mDpy].rRoi.right, in dump()
86 ctx->listStats[mDpy].rRoi.bottom); in dump()
89 ctx->listStats[mDpy].lRoi.left,ctx->listStats[mDpy].lRoi.top, in dump()
90 ctx->listStats[mDpy].lRoi.right, in dump()
91 ctx->listStats[mDpy].lRoi.bottom); in dump()
191 const int numLayers = ctx->listStats[mDpy].numAppLayers; in reset()
193 ctx->mOverlay->clear(mDpy); in reset()
194 ctx->mLayerRotMap[mDpy]->clear(); in reset()
195 resetROI(ctx, mDpy); in reset()
261 LayerProp *layerProp = ctx->layerProp[mDpy]; in setMDPCompLayerFlags()
263 for(int index = 0; index < ctx->listStats[mDpy].numAppLayers; index++) { in setMDPCompLayerFlags()
284 isSkipPresent(ctx, mDpy)) { in setRedraw()
493 !mDpy && isSecondaryAnimating(ctx) && in isFrameDoable()
510 __FUNCTION__,mDpy); in isFrameDoable()
518 hwc_rect_t roi = ctx->listStats[mDpy].lRoi; in trimAgainstROI()
528 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in validateAndApplyROI()
529 hwc_rect_t visibleRect = ctx->listStats[mDpy].lRoi; in validateAndApplyROI()
569 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in generateROI()
574 hwc_rect fullFrame = (struct hwc_rect) {0, 0,(int)ctx->dpyAttr[mDpy].xres, in generateROI()
575 (int)ctx->dpyAttr[mDpy].yres}; in generateROI()
599 ctx->listStats[mDpy].lRoi = roi; in generateROI()
601 resetROI(ctx, mDpy); in generateROI()
604 ctx->listStats[mDpy].lRoi.left, ctx->listStats[mDpy].lRoi.top, in generateROI()
605 ctx->listStats[mDpy].lRoi.right, ctx->listStats[mDpy].lRoi.bottom); in generateROI()
609 hwc_rect l_roi = ctx->listStats[mDpy].lRoi; in trimAgainstROI()
610 hwc_rect r_roi = ctx->listStats[mDpy].rRoi; in trimAgainstROI()
625 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in validateAndApplyROI()
627 hwc_rect_t visibleRectL = ctx->listStats[mDpy].lRoi; in validateAndApplyROI()
628 hwc_rect_t visibleRectR = ctx->listStats[mDpy].rRoi; in validateAndApplyROI()
674 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in generateROI()
675 int lSplit = getLeftSplit(ctx, mDpy); in generateROI()
677 int hw_h = (int)ctx->dpyAttr[mDpy].yres; in generateROI()
678 int hw_w = (int)ctx->dpyAttr[mDpy].xres; in generateROI()
722 ctx->listStats[mDpy].lRoi = l_roi; in generateROI()
723 ctx->listStats[mDpy].rRoi = r_roi; in generateROI()
726 resetROI(ctx, mDpy); in generateROI()
730 ctx->listStats[mDpy].lRoi.left, ctx->listStats[mDpy].lRoi.top, in generateROI()
731 ctx->listStats[mDpy].lRoi.right, ctx->listStats[mDpy].lRoi.bottom, in generateROI()
732 ctx->listStats[mDpy].rRoi.left, ctx->listStats[mDpy].rRoi.top, in generateROI()
733 ctx->listStats[mDpy].rRoi.right, ctx->listStats[mDpy].rRoi.bottom); in generateROI()
741 const int numAppLayers = ctx->listStats[mDpy].numAppLayers; in tryFullFrame()
745 if(ctx->listStats[mDpy].mAIVVideoMode) { in tryFullFrame()
747 __FUNCTION__, mDpy); in tryFullFrame()
753 if(sIdleFallBack && (!ctx->listStats[mDpy].secureUI && in tryFullFrame()
754 !ctx->listStats[mDpy].secureRGBCount) && in tryFullFrame()
755 (ctx->listStats[mDpy].numAppLayers != 1)) { in tryFullFrame()
756 ALOGD_IF(isDebug(), "%s: Idle fallback dpy %d",__FUNCTION__, mDpy); in tryFullFrame()
760 if(!mDpy && isSecondaryAnimating(ctx) && in tryFullFrame()
776 __FUNCTION__,mDpy); in tryFullFrame()
781 if(mDpy > HWC_DISPLAY_PRIMARY && in tryFullFrame()
783 (ctx->dpyAttr[mDpy].xres < mdpHw.getMaxMixerWidth())) { in tryFullFrame()
794 if(ctx->dpyAttr[mDpy].mActionSafePresent in tryFullFrame()
795 || ctx->dpyAttr[mDpy].mMDPScalingMode) { in tryFullFrame()
805 if(!canUseRotator(ctx, mDpy)) { in tryFullFrame()
807 __FUNCTION__, mDpy); in tryFullFrame()
815 if( mdpHw.is8x26() && (ctx->dpyAttr[mDpy].xres > 1024) && in tryFullFrame()
843 if((mDpy > HWC_DISPLAY_PRIMARY) && in fullMDPComp()
849 const int numAppLayers = ctx->listStats[mDpy].numAppLayers; in fullMDPComp()
859 if(!mDpy && isSecondaryConnected(ctx) && in fullMDPComp()
896 const int numAppLayers = ctx->listStats[mDpy].numAppLayers; in fullMDPCompWithPTOR()
898 ctx->mOverlay->availablePipes(mDpy, Overlay::MIXER_DEFAULT)); in fullMDPCompWithPTOR()
901 if (mDpy || !ctx->mCopyBit[mDpy]) { in fullMDPCompWithPTOR()
907 if ((numAppLayers > stagesForMDP) || isSkipPresent(ctx, mDpy) || in fullMDPCompWithPTOR()
908 isYuvPresent(ctx, mDpy) || mCurrentFrame.dropCount || in fullMDPCompWithPTOR()
909 isSecurePresent(ctx, mDpy)) { in fullMDPCompWithPTOR()
922 if(!mDpy && isSecondaryConnected(ctx) && in fullMDPCompWithPTOR()
950 if (!isPeripheral(dispFrame, ctx->mViewFrame[mDpy]) || in fullMDPCompWithPTOR()
955 ((int)ctx->dpyAttr[mDpy].xres * (int)ctx->dpyAttr[mDpy].yres)) { in fullMDPCompWithPTOR()
1014 if (!ctx->mCopyBit[mDpy]->prepareOverlap(ctx, list)) { in fullMDPCompWithPTOR()
1025 private_handle_t *renderBuf = ctx->mCopyBit[mDpy]->getCurrentRenderBuffer(); in fullMDPCompWithPTOR()
1133 if(!sEnableMixedMode || !isAlphaPresentinFB(ctx, mDpy)) { in partialMDPComp()
1139 if(isSkipPresent(ctx, mDpy) or list->flags & HWC_GEOMETRY_CHANGED) { in partialMDPComp()
1156 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in cacheBasedComp()
1178 ALOGD_IF(isDebug(),"%s: batching failed, dpy %d",__FUNCTION__, mDpy); in cacheBasedComp()
1190 if((mDpy > HWC_DISPLAY_PRIMARY) and in cacheBasedComp()
1217 const int numAppLayers = ctx->listStats[mDpy].numAppLayers; in loadBasedComp()
1220 ctx->mOverlay->availablePipes(mDpy, Overlay::MIXER_DEFAULT)); in loadBasedComp()
1299 if(mDpy or isSecurePresent(ctx, mDpy) or in isLoadBasedCompDoable()
1300 isYuvPresent(ctx, mDpy)) { in isLoadBasedCompDoable()
1309 isSkipPresent(ctx, mDpy) || (list->flags & HWC_GEOMETRY_CHANGED) || in canPartialUpdate()
1310 !sIsPartialUpdateActive || mDpy ) { in canPartialUpdate()
1313 if(ctx->listStats[mDpy].secureUI) in canPartialUpdate()
1329 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in videoOnlyComp()
1336 if(!isYuvPresent(ctx, mDpy) or (mdpCount == 0)) { in videoOnlyComp()
1343 if(!isSecurePresent(ctx, mDpy) && secureOnly){ in videoOnlyComp()
1370 if(ctx->listStats[mDpy].mAIVVideoMode) { in tryMDPOnlyLayers()
1372 __FUNCTION__, mDpy); in tryMDPOnlyLayers()
1390 if(!isSecurePresent(ctx, mDpy) && secureOnly){ in mdpOnlyLayersComp()
1395 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in mdpOnlyLayersComp()
1411 ALOGD_IF(isDebug(),"%s: batching failed, dpy %d",__FUNCTION__, mDpy); in mdpOnlyLayersComp()
1434 ALOGD_IF(isDebug(), "%s: Video marked SKIP dpy %d", __FUNCTION__, mDpy); in isYUVDoable()
1438 if(has90Transform(layer) && !canUseRotator(ctx, mDpy)) { in isYUVDoable()
1468 __FUNCTION__, mDpy); in isSecureRGBDoable()
1651 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in updateLayerCache()
1676 for (size_t i = 0; i < (size_t)ctx->listStats[mDpy].numAppLayers; i++) { in dropNonAIVLayers()
1693 int nYuvCount = ctx->listStats[mDpy].yuvCount; in updateYUV()
1695 int nYuvIndex = ctx->listStats[mDpy].yuvIndices[index]; in updateYUV()
1724 int nSecureRGBCount = ctx->listStats[mDpy].secureRGBCount; in updateSecureRGB()
1726 int nSecureRGBIndex = ctx->listStats[mDpy].secureRGBIndices[index]; in updateSecureRGB()
1782 if(!ctx->mFBUpdate[mDpy]->prepare(ctx, list, fbRect, mCurrentFrame.fbZ)) in postHeuristicsHandling()
1832 if(!ctx->mOverlay->validateAndSet(mDpy, ctx->dpyAttr[mDpy].fd)) { in postHeuristicsHandling()
1834 ,__FUNCTION__, mDpy); in postHeuristicsHandling()
1864 __FUNCTION__, mDpy); in resourceCheck()
1914 if(!mDpy && qdutils::MDPVersion::getInstance().isDynFpsSupported() && in setDynRefreshRate()
1924 uint32_t refreshRate = ctx->dpyAttr[mDpy].refreshRate; in setDynRefreshRate()
1929 } else if((ctx->listStats[mDpy].yuvCount == frame.mdpCount) || in setDynRefreshRate()
1933 refreshRate = ctx->listStats[mDpy].refreshRateRequest; in setDynRefreshRate()
1935 setRefreshRate(ctx, mDpy, refreshRate); in setDynRefreshRate()
1949 const int numLayers = ctx->listStats[mDpy].numAppLayers; in prepare()
1950 if(mDpy == HWC_DISPLAY_PRIMARY) { in prepare()
1962 if(!mDpy) in prepare()
1977 setRefreshRate(ctx, mDpy, ctx->dpyAttr[mDpy].refreshRate); in prepare()
1984 if(ctx->listStats[mDpy].isDisplayAnimating) { in prepare()
1986 if(ctx->mAnimationState[mDpy] == ANIMATION_STOPPED) { in prepare()
1988 ctx->mAnimationState[mDpy] = ANIMATION_STARTED; in prepare()
1994 setRefreshRate(ctx, mDpy, ctx->dpyAttr[mDpy].refreshRate); in prepare()
1999 ctx->mAnimationState[mDpy] = ANIMATION_STOPPED; in prepare()
2002 if(!mDpy and !isSecondaryConnected(ctx) and !mPrevModeOn and in prepare()
2003 mCachedFrame.isSameFrame(ctx,mDpy,list)) { in prepare()
2018 if(ctx->listStats[mDpy].mAIVVideoMode) { in prepare()
2029 resetROI(ctx, mDpy); in prepare()
2034 ALOGE_IF(sSimulationFlags && (mDpy == HWC_DISPLAY_PRIMARY), in prepare()
2038 if ((ctx->mMDP.version == qdutils::MDP_V3_0_5) && ctx->mCopyBit[mDpy] && in prepare()
2041 for(int i = 0; i < ctx->listStats[mDpy].numAppLayers; i++) { in prepare()
2081 pipeSpecs.dpy = mDpy; in allocSplitVGPipesfor4k2k()
2102 fd = ctx->mCopyBit[mDpy]->drawOverlap(ctx, list); in drawOverlap()
2156 return configureNonSplit(ctx, layer, mDpy, mdpFlags, zOrder, dest, in configure()
2186 pipeSpecs.dpy = mDpy; in allocLayerPipes()
2209 return configureSourceSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, in configure4k2kYuv()
2221 LayerProp *layerProp = ctx->layerProp[mDpy]; in draw()
2223 int numHwLayers = ctx->listStats[mDpy].numAppLayers; in draw()
2262 __FUNCTION__, mDpy); in draw()
2273 __FUNCTION__, mDpy); in draw()
2294 if (!mDpy && (index != -1)) { in draw()
2295 hnd = ctx->mCopyBit[mDpy]->getCurrentRenderBuffer(); in draw()
2314 __FUNCTION__, mDpy); in draw()
2330 const int lSplit = getLeftSplit(ctx, mDpy); in adjustForSourceSplit()
2358 const int lSplit = getLeftSplit(ctx, mDpy); in acquireMDPPipes()
2367 pipeSpecs.needsScaling = qhwc::needsScalingWithSplit(ctx, layer, mDpy); in acquireMDPPipes()
2368 pipeSpecs.dpy = mDpy; in acquireMDPPipes()
2373 hwc_rect_t l_roi = ctx->listStats[mDpy].lRoi; in acquireMDPPipes()
2374 hwc_rect_t r_roi = ctx->listStats[mDpy].rRoi; in acquireMDPPipes()
2401 const int lSplit = getLeftSplit(ctx, mDpy); in allocLayerPipes()
2426 const int lSplit = getLeftSplit(ctx, mDpy); in configure4k2kYuv()
2436 return configureSourceSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, in configure4k2kYuv()
2459 return configureSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, lDest, in configure()
2471 LayerProp *layerProp = ctx->layerProp[mDpy]; in draw()
2473 int numHwLayers = ctx->listStats[mDpy].numAppLayers; in draw()
2511 __FUNCTION__, mDpy); in draw()
2522 __FUNCTION__, mDpy); in draw()
2538 if (!mDpy && (index != -1)) { in draw()
2539 hnd = ctx->mCopyBit[mDpy]->getCurrentRenderBuffer(); in draw()
2603 pipeSpecs.dpy = mDpy; in acquireMDPPipes()
2621 bool primarySplitAlways = (mDpy == HWC_DISPLAY_PRIMARY) and in acquireMDPPipes()
2623 int lSplit = getLeftSplit(ctx, mDpy); in acquireMDPPipes()
2686 if(ctx->listStats[mDpy].mAIVVideoMode && isYuvBuffer(hnd)) { in configure()
2687 updateCoordinates(ctx, crop, dst, mDpy); in configure()
2691 calcExtDisplayPosition(ctx, hnd, mDpy, crop, dst, transform, orient); in configure()
2705 ctx->mLayerRotMap[mDpy]->add(layer, *rot); in configure()