Lines Matching refs:mDpy

60 MDPComp::MDPComp(int dpy):mDpy(dpy){};  in MDPComp()
68 (mDpy == 0) ? "\"PRIMARY\"" : in dump()
69 (mDpy == 1) ? "\"EXTERNAL\"" : "\"VIRTUAL\""); in dump()
76 if(isDisplaySplit(ctx, mDpy)) { in dump()
79 ctx->listStats[mDpy].lRoi.left, ctx->listStats[mDpy].lRoi.top, in dump()
80 ctx->listStats[mDpy].lRoi.right, in dump()
81 ctx->listStats[mDpy].lRoi.bottom, in dump()
82 ctx->listStats[mDpy].rRoi.left,ctx->listStats[mDpy].rRoi.top, in dump()
83 ctx->listStats[mDpy].rRoi.right, in dump()
84 ctx->listStats[mDpy].rRoi.bottom); in dump()
87 ctx->listStats[mDpy].lRoi.left,ctx->listStats[mDpy].lRoi.top, in dump()
88 ctx->listStats[mDpy].lRoi.right, in dump()
89 ctx->listStats[mDpy].lRoi.bottom); in dump()
176 const int numLayers = ctx->listStats[mDpy].numAppLayers; in reset()
178 ctx->mOverlay->clear(mDpy); in reset()
179 ctx->mLayerRotMap[mDpy]->clear(); in reset()
211 LayerProp *layerProp = ctx->layerProp[mDpy]; in setMDPCompLayerFlags()
213 for(int index = 0; index < ctx->listStats[mDpy].numAppLayers; index++) { in setMDPCompLayerFlags()
234 isSkipPresent(ctx, mDpy)) { in setRedraw()
434 __FUNCTION__,mDpy); in isFrameDoable()
441 hwc_rect_t roi = ctx->listStats[mDpy].lRoi; in trimAgainstROI()
451 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in validateAndApplyROI()
452 hwc_rect_t visibleRect = ctx->listStats[mDpy].lRoi; in validateAndApplyROI()
491 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in generateROI()
496 hwc_rect fullFrame = (struct hwc_rect) {0, 0,(int)ctx->dpyAttr[mDpy].xres, in generateROI()
497 (int)ctx->dpyAttr[mDpy].yres}; in generateROI()
527 ctx->listStats[mDpy].lRoi = roi; in generateROI()
529 resetROI(ctx, mDpy); in generateROI()
532 ctx->listStats[mDpy].lRoi.left, ctx->listStats[mDpy].lRoi.top, in generateROI()
533 ctx->listStats[mDpy].lRoi.right, ctx->listStats[mDpy].lRoi.bottom); in generateROI()
537 hwc_rect l_roi = ctx->listStats[mDpy].lRoi; in trimAgainstROI()
538 hwc_rect r_roi = ctx->listStats[mDpy].rRoi; in trimAgainstROI()
553 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in validateAndApplyROI()
555 hwc_rect_t visibleRectL = ctx->listStats[mDpy].lRoi; in validateAndApplyROI()
556 hwc_rect_t visibleRectR = ctx->listStats[mDpy].rRoi; in validateAndApplyROI()
601 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in generateROI()
602 int lSplit = getLeftSplit(ctx, mDpy); in generateROI()
604 int hw_h = (int)ctx->dpyAttr[mDpy].yres; in generateROI()
605 int hw_w = (int)ctx->dpyAttr[mDpy].xres; in generateROI()
658 ctx->listStats[mDpy].lRoi = l_roi; in generateROI()
659 ctx->listStats[mDpy].rRoi = r_roi; in generateROI()
662 resetROI(ctx, mDpy); in generateROI()
666 ctx->listStats[mDpy].lRoi.left, ctx->listStats[mDpy].lRoi.top, in generateROI()
667 ctx->listStats[mDpy].lRoi.right, ctx->listStats[mDpy].lRoi.bottom, in generateROI()
668 ctx->listStats[mDpy].rRoi.left, ctx->listStats[mDpy].rRoi.top, in generateROI()
669 ctx->listStats[mDpy].rRoi.right, ctx->listStats[mDpy].rRoi.bottom); in generateROI()
677 const int numAppLayers = ctx->listStats[mDpy].numAppLayers; in tryFullFrame()
680 if(sIdleFallBack && !ctx->listStats[mDpy].secureUI) { in tryFullFrame()
681 ALOGD_IF(isDebug(), "%s: Idle fallback dpy %d",__FUNCTION__, mDpy); in tryFullFrame()
685 if(isSkipPresent(ctx, mDpy)) { in tryFullFrame()
688 isSkipPresent(ctx, mDpy)); in tryFullFrame()
692 if(mDpy > HWC_DISPLAY_PRIMARY && (priDispW > MAX_DISPLAY_DIM) && in tryFullFrame()
693 (ctx->dpyAttr[mDpy].xres < MAX_DISPLAY_DIM)) { in tryFullFrame()
704 if(ctx->dpyAttr[mDpy].mActionSafePresent in tryFullFrame()
705 || ctx->dpyAttr[mDpy].mDownScaleMode) { in tryFullFrame()
715 if(!canUseRotator(ctx, mDpy)) { in tryFullFrame()
717 __FUNCTION__, mDpy); in tryFullFrame()
725 (ctx->dpyAttr[mDpy].xres > 1024) && in tryFullFrame()
754 if((mDpy > HWC_DISPLAY_PRIMARY) && in fullMDPComp()
760 const int numAppLayers = ctx->listStats[mDpy].numAppLayers; in fullMDPComp()
798 const int numAppLayers = ctx->listStats[mDpy].numAppLayers; in fullMDPCompWithPTOR()
800 ctx->mOverlay->availablePipes(mDpy, Overlay::MIXER_DEFAULT)); in fullMDPCompWithPTOR()
803 if (mDpy || !ctx->mCopyBit[mDpy] || isDisplaySplit(ctx, mDpy)) { in fullMDPCompWithPTOR()
809 if ((numAppLayers > stagesForMDP) || isSkipPresent(ctx, mDpy) || in fullMDPCompWithPTOR()
810 isYuvPresent(ctx, mDpy) || mCurrentFrame.dropCount || in fullMDPCompWithPTOR()
811 isSecurePresent(ctx, mDpy)) { in fullMDPCompWithPTOR()
843 if (!isPeripheral(dispFrame, ctx->mViewFrame[mDpy]) || in fullMDPCompWithPTOR()
848 ((int)ctx->dpyAttr[mDpy].xres * (int)ctx->dpyAttr[mDpy].yres)) { in fullMDPCompWithPTOR()
892 if (!ctx->mCopyBit[mDpy]->prepareOverlap(ctx, list)) { in fullMDPCompWithPTOR()
985 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in cacheBasedComp()
1005 ALOGD_IF(isDebug(),"%s: batching failed, dpy %d",__FUNCTION__, mDpy); in cacheBasedComp()
1017 if((mDpy > HWC_DISPLAY_PRIMARY) and in cacheBasedComp()
1044 const int numAppLayers = ctx->listStats[mDpy].numAppLayers; in loadBasedComp()
1047 ctx->mOverlay->availablePipes(mDpy, Overlay::MIXER_DEFAULT)); in loadBasedComp()
1126 if(mDpy or isSecurePresent(ctx, mDpy) or in isLoadBasedCompDoable()
1127 isYuvPresent(ctx, mDpy)) { in isLoadBasedCompDoable()
1136 isSkipPresent(ctx, mDpy) || (list->flags & HWC_GEOMETRY_CHANGED) || in canPartialUpdate()
1137 mDpy ) { in canPartialUpdate()
1140 if(ctx->listStats[mDpy].secureUI) in canPartialUpdate()
1156 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in videoOnlyComp()
1163 if(!isYuvPresent(ctx, mDpy) or (mdpCount == 0)) { in videoOnlyComp()
1170 if(!isSecurePresent(ctx, mDpy) && secureOnly){ in videoOnlyComp()
1196 ALOGD_IF(isDebug(), "%s: Video marked SKIP dpy %d", __FUNCTION__, mDpy); in isYUVDoable()
1200 if(has90Transform(layer) && !canUseRotator(ctx, mDpy)) { in isYUVDoable()
1392 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in updateLayerCache()
1416 int nYuvCount = ctx->listStats[mDpy].yuvCount; in updateYUV()
1418 int nYuvIndex = ctx->listStats[mDpy].yuvIndices[index]; in updateYUV()
1477 if(!ctx->mFBUpdate[mDpy]->prepare(ctx, list, fbRect, mCurrentFrame.fbZ)) in postHeuristicsHandling()
1527 if(!ctx->mOverlay->validateAndSet(mDpy, ctx->dpyAttr[mDpy].fd)) { in postHeuristicsHandling()
1529 ,__FUNCTION__, mDpy); in postHeuristicsHandling()
1559 __FUNCTION__, mDpy); in resourceCheck()
1617 const int numLayers = ctx->listStats[mDpy].numAppLayers; in prepare()
1628 if(!mDpy) in prepare()
1646 if(ctx->listStats[mDpy].isDisplayAnimating) { in prepare()
1648 if(ctx->mAnimationState[mDpy] == ANIMATION_STOPPED) { in prepare()
1650 ctx->mAnimationState[mDpy] = ANIMATION_STARTED; in prepare()
1657 ctx->mAnimationState[mDpy] = ANIMATION_STOPPED; in prepare()
1668 resetROI(ctx, mDpy); in prepare()
1708 pipeSpecs.dpy = mDpy; in allocSplitVGPipesfor4k2k()
1729 fd = ctx->mCopyBit[mDpy]->drawOverlap(ctx, list); in drawOverlap()
1784 return configureNonSplit(ctx, layer, mDpy, mdpFlags, zOrder, isFg, dest, in configure()
1814 pipeSpecs.dpy = mDpy; in allocLayerPipes()
1838 return configureSourceSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, isFg, in configure4k2kYuv()
1855 LayerProp *layerProp = ctx->layerProp[mDpy]; in draw()
1857 int numHwLayers = ctx->listStats[mDpy].numAppLayers; in draw()
1896 __FUNCTION__, mDpy); in draw()
1907 __FUNCTION__, mDpy); in draw()
1928 if (!mDpy && (index != -1)) { in draw()
1929 hnd = ctx->mCopyBit[mDpy]->getCurrentRenderBuffer(); in draw()
1949 __FUNCTION__, mDpy); in draw()
1965 const int lSplit = getLeftSplit(ctx, mDpy); in adjustForSourceSplit()
1993 const int lSplit = getLeftSplit(ctx, mDpy); in acquireMDPPipes()
2002 pipeSpecs.needsScaling = qhwc::needsScalingWithSplit(ctx, layer, mDpy); in acquireMDPPipes()
2003 pipeSpecs.dpy = mDpy; in acquireMDPPipes()
2008 hwc_rect_t l_roi = ctx->listStats[mDpy].lRoi; in acquireMDPPipes()
2009 hwc_rect_t r_roi = ctx->listStats[mDpy].rRoi; in acquireMDPPipes()
2036 const int lSplit = getLeftSplit(ctx, mDpy); in allocLayerPipes()
2061 const int lSplit = getLeftSplit(ctx, mDpy); in configure4k2kYuv()
2072 return configureSourceSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, isFg, in configure4k2kYuv()
2096 return configureSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, isFg, lDest, in configure()
2113 LayerProp *layerProp = ctx->layerProp[mDpy]; in draw()
2115 int numHwLayers = ctx->listStats[mDpy].numAppLayers; in draw()
2153 __FUNCTION__, mDpy); in draw()
2164 __FUNCTION__, mDpy); in draw()
2180 if (!mDpy && (index != -1)) { in draw()
2181 hnd = ctx->mCopyBit[mDpy]->getCurrentRenderBuffer(); in draw()
2245 pipeSpecs.dpy = mDpy; in acquireMDPPipes()
2262 bool primarySplitAlways = (mDpy == HWC_DISPLAY_PRIMARY) and in acquireMDPPipes()
2264 int lSplit = getLeftSplit(ctx, mDpy); in acquireMDPPipes()
2335 ctx->mLayerRotMap[mDpy]->add(layer, *rot); in configure()