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()
184 const int numLayers = ctx->listStats[mDpy].numAppLayers; in reset()
186 ctx->mOverlay->clear(mDpy); in reset()
187 ctx->mLayerRotMap[mDpy]->clear(); in reset()
219 LayerProp *layerProp = ctx->layerProp[mDpy]; in setMDPCompLayerFlags()
221 for(int index = 0; index < ctx->listStats[mDpy].numAppLayers; index++) { in setMDPCompLayerFlags()
242 isSkipPresent(ctx, mDpy)) { in setRedraw()
442 __FUNCTION__,mDpy); in isFrameDoable()
449 hwc_rect_t roi = ctx->listStats[mDpy].lRoi; in trimAgainstROI()
459 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in validateAndApplyROI()
460 hwc_rect_t visibleRect = ctx->listStats[mDpy].lRoi; in validateAndApplyROI()
499 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in generateROI()
504 hwc_rect fullFrame = (struct hwc_rect) {0, 0,(int)ctx->dpyAttr[mDpy].xres, in generateROI()
505 (int)ctx->dpyAttr[mDpy].yres}; in generateROI()
535 ctx->listStats[mDpy].lRoi = roi; in generateROI()
537 resetROI(ctx, mDpy); in generateROI()
540 ctx->listStats[mDpy].lRoi.left, ctx->listStats[mDpy].lRoi.top, in generateROI()
541 ctx->listStats[mDpy].lRoi.right, ctx->listStats[mDpy].lRoi.bottom); in generateROI()
545 hwc_rect l_roi = ctx->listStats[mDpy].lRoi; in trimAgainstROI()
546 hwc_rect r_roi = ctx->listStats[mDpy].rRoi; in trimAgainstROI()
561 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in validateAndApplyROI()
563 hwc_rect_t visibleRectL = ctx->listStats[mDpy].lRoi; in validateAndApplyROI()
564 hwc_rect_t visibleRectR = ctx->listStats[mDpy].rRoi; in validateAndApplyROI()
609 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in generateROI()
610 int lSplit = getLeftSplit(ctx, mDpy); in generateROI()
612 int hw_h = (int)ctx->dpyAttr[mDpy].yres; in generateROI()
613 int hw_w = (int)ctx->dpyAttr[mDpy].xres; in generateROI()
666 ctx->listStats[mDpy].lRoi = l_roi; in generateROI()
667 ctx->listStats[mDpy].rRoi = r_roi; in generateROI()
670 resetROI(ctx, mDpy); in generateROI()
674 ctx->listStats[mDpy].lRoi.left, ctx->listStats[mDpy].lRoi.top, in generateROI()
675 ctx->listStats[mDpy].lRoi.right, ctx->listStats[mDpy].lRoi.bottom, in generateROI()
676 ctx->listStats[mDpy].rRoi.left, ctx->listStats[mDpy].rRoi.top, in generateROI()
677 ctx->listStats[mDpy].rRoi.right, ctx->listStats[mDpy].rRoi.bottom); in generateROI()
685 const int numAppLayers = ctx->listStats[mDpy].numAppLayers; in tryFullFrame()
688 if(sIdleFallBack && !ctx->listStats[mDpy].secureUI) { in tryFullFrame()
689 ALOGD_IF(isDebug(), "%s: Idle fallback dpy %d",__FUNCTION__, mDpy); in tryFullFrame()
693 if(isSkipPresent(ctx, mDpy)) { in tryFullFrame()
696 isSkipPresent(ctx, mDpy)); in tryFullFrame()
700 if(mDpy > HWC_DISPLAY_PRIMARY && (priDispW > MAX_DISPLAY_DIM) && in tryFullFrame()
701 (ctx->dpyAttr[mDpy].xres < MAX_DISPLAY_DIM)) { in tryFullFrame()
712 if(ctx->dpyAttr[mDpy].mActionSafePresent in tryFullFrame()
713 || ctx->dpyAttr[mDpy].mDownScaleMode) { in tryFullFrame()
723 if(!canUseRotator(ctx, mDpy)) { in tryFullFrame()
725 __FUNCTION__, mDpy); in tryFullFrame()
733 (ctx->dpyAttr[mDpy].xres > 1024) && in tryFullFrame()
762 if((mDpy > HWC_DISPLAY_PRIMARY) && in fullMDPComp()
768 const int numAppLayers = ctx->listStats[mDpy].numAppLayers; in fullMDPComp()
806 const int numAppLayers = ctx->listStats[mDpy].numAppLayers; in fullMDPCompWithPTOR()
808 ctx->mOverlay->availablePipes(mDpy, Overlay::MIXER_DEFAULT)); in fullMDPCompWithPTOR()
811 if (mDpy || !ctx->mCopyBit[mDpy] || isDisplaySplit(ctx, mDpy)) { in fullMDPCompWithPTOR()
817 if ((numAppLayers > stagesForMDP) || isSkipPresent(ctx, mDpy) || in fullMDPCompWithPTOR()
818 isYuvPresent(ctx, mDpy) || mCurrentFrame.dropCount || in fullMDPCompWithPTOR()
819 isSecurePresent(ctx, mDpy)) { in fullMDPCompWithPTOR()
851 if (!isPeripheral(dispFrame, ctx->mViewFrame[mDpy]) || in fullMDPCompWithPTOR()
856 ((int)ctx->dpyAttr[mDpy].xres * (int)ctx->dpyAttr[mDpy].yres)) { in fullMDPCompWithPTOR()
900 if (!ctx->mCopyBit[mDpy]->prepareOverlap(ctx, list)) { in fullMDPCompWithPTOR()
993 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in cacheBasedComp()
1013 ALOGD_IF(isDebug(),"%s: batching failed, dpy %d",__FUNCTION__, mDpy); in cacheBasedComp()
1025 if((mDpy > HWC_DISPLAY_PRIMARY) and in cacheBasedComp()
1052 const int numAppLayers = ctx->listStats[mDpy].numAppLayers; in loadBasedComp()
1055 ctx->mOverlay->availablePipes(mDpy, Overlay::MIXER_DEFAULT)); in loadBasedComp()
1134 if(mDpy or isSecurePresent(ctx, mDpy) or in isLoadBasedCompDoable()
1135 isYuvPresent(ctx, mDpy)) { in isLoadBasedCompDoable()
1144 isSkipPresent(ctx, mDpy) || (list->flags & HWC_GEOMETRY_CHANGED) || in canPartialUpdate()
1145 mDpy ) { in canPartialUpdate()
1148 if(ctx->listStats[mDpy].secureUI) in canPartialUpdate()
1164 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in videoOnlyComp()
1171 if(!isYuvPresent(ctx, mDpy) or (mdpCount == 0)) { in videoOnlyComp()
1178 if(!isSecurePresent(ctx, mDpy) && secureOnly){ in videoOnlyComp()
1204 ALOGD_IF(isDebug(), "%s: Video marked SKIP dpy %d", __FUNCTION__, mDpy); in isYUVDoable()
1208 if(has90Transform(layer) && !canUseRotator(ctx, mDpy)) { in isYUVDoable()
1400 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in updateLayerCache()
1424 int nYuvCount = ctx->listStats[mDpy].yuvCount; in updateYUV()
1426 int nYuvIndex = ctx->listStats[mDpy].yuvIndices[index]; in updateYUV()
1485 if(!ctx->mFBUpdate[mDpy]->prepare(ctx, list, fbRect, mCurrentFrame.fbZ)) in postHeuristicsHandling()
1535 if(!ctx->mOverlay->validateAndSet(mDpy, ctx->dpyAttr[mDpy].fd)) { in postHeuristicsHandling()
1537 ,__FUNCTION__, mDpy); in postHeuristicsHandling()
1567 __FUNCTION__, mDpy); in resourceCheck()
1625 const int numLayers = ctx->listStats[mDpy].numAppLayers; in prepare()
1636 if(!mDpy) in prepare()
1654 if(ctx->listStats[mDpy].isDisplayAnimating) { in prepare()
1656 if(ctx->mAnimationState[mDpy] == ANIMATION_STOPPED) { in prepare()
1658 ctx->mAnimationState[mDpy] = ANIMATION_STARTED; in prepare()
1665 ctx->mAnimationState[mDpy] = ANIMATION_STOPPED; in prepare()
1676 resetROI(ctx, mDpy); in prepare()
1716 pipeSpecs.dpy = mDpy; in allocSplitVGPipesfor4k2k()
1737 fd = ctx->mCopyBit[mDpy]->drawOverlap(ctx, list); in drawOverlap()
1792 return configureNonSplit(ctx, layer, mDpy, mdpFlags, zOrder, isFg, dest, in configure()
1822 pipeSpecs.dpy = mDpy; in allocLayerPipes()
1846 return configureSourceSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, isFg, in configure4k2kYuv()
1863 LayerProp *layerProp = ctx->layerProp[mDpy]; in draw()
1865 int numHwLayers = ctx->listStats[mDpy].numAppLayers; in draw()
1904 __FUNCTION__, mDpy); in draw()
1915 __FUNCTION__, mDpy); in draw()
1936 if (!mDpy && (index != -1)) { in draw()
1937 hnd = ctx->mCopyBit[mDpy]->getCurrentRenderBuffer(); in draw()
1957 __FUNCTION__, mDpy); in draw()
1973 const int lSplit = getLeftSplit(ctx, mDpy); in adjustForSourceSplit()
2001 const int lSplit = getLeftSplit(ctx, mDpy); in acquireMDPPipes()
2010 pipeSpecs.needsScaling = qhwc::needsScalingWithSplit(ctx, layer, mDpy); in acquireMDPPipes()
2011 pipeSpecs.dpy = mDpy; in acquireMDPPipes()
2016 hwc_rect_t l_roi = ctx->listStats[mDpy].lRoi; in acquireMDPPipes()
2017 hwc_rect_t r_roi = ctx->listStats[mDpy].rRoi; in acquireMDPPipes()
2044 const int lSplit = getLeftSplit(ctx, mDpy); in allocLayerPipes()
2069 const int lSplit = getLeftSplit(ctx, mDpy); in configure4k2kYuv()
2080 return configureSourceSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, isFg, in configure4k2kYuv()
2104 return configureSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, isFg, lDest, in configure()
2121 LayerProp *layerProp = ctx->layerProp[mDpy]; in draw()
2123 int numHwLayers = ctx->listStats[mDpy].numAppLayers; in draw()
2161 __FUNCTION__, mDpy); in draw()
2172 __FUNCTION__, mDpy); in draw()
2188 if (!mDpy && (index != -1)) { in draw()
2189 hnd = ctx->mCopyBit[mDpy]->getCurrentRenderBuffer(); in draw()
2253 pipeSpecs.dpy = mDpy; in acquireMDPPipes()
2270 bool primarySplitAlways = (mDpy == HWC_DISPLAY_PRIMARY) and in acquireMDPPipes()
2272 int lSplit = getLeftSplit(ctx, mDpy); in acquireMDPPipes()
2343 ctx->mLayerRotMap[mDpy]->add(layer, *rot); in configure()