Lines Matching refs:mDpy
59 MDPComp::MDPComp(int dpy):mDpy(dpy){}; in MDPComp()
67 (mDpy == 0) ? "\"PRIMARY\"" : in dump()
68 (mDpy == 1) ? "\"EXTERNAL\"" : "\"VIRTUAL\""); in dump()
75 if(isDisplaySplit(ctx, mDpy)) { in dump()
78 ctx->listStats[mDpy].lRoi.left, ctx->listStats[mDpy].lRoi.top, in dump()
79 ctx->listStats[mDpy].lRoi.right, in dump()
80 ctx->listStats[mDpy].lRoi.bottom, in dump()
81 ctx->listStats[mDpy].rRoi.left,ctx->listStats[mDpy].rRoi.top, in dump()
82 ctx->listStats[mDpy].rRoi.right, in dump()
83 ctx->listStats[mDpy].rRoi.bottom); in dump()
86 ctx->listStats[mDpy].lRoi.left,ctx->listStats[mDpy].lRoi.top, in dump()
87 ctx->listStats[mDpy].lRoi.right, in dump()
88 ctx->listStats[mDpy].lRoi.bottom); in dump()
172 const int numLayers = ctx->listStats[mDpy].numAppLayers; in reset()
174 ctx->mOverlay->clear(mDpy); in reset()
175 ctx->mLayerRotMap[mDpy]->clear(); in reset()
202 LayerProp *layerProp = ctx->layerProp[mDpy]; in setMDPCompLayerFlags()
204 for(int index = 0; index < ctx->listStats[mDpy].numAppLayers; index++) { in setMDPCompLayerFlags()
225 isSkipPresent(ctx, mDpy)) { in setRedraw()
423 __FUNCTION__,mDpy); in isFrameDoable()
430 hwc_rect_t roi = ctx->listStats[mDpy].lRoi; in trimAgainstROI()
440 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in validateAndApplyROI()
441 hwc_rect_t visibleRect = ctx->listStats[mDpy].lRoi; in validateAndApplyROI()
480 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in generateROI()
485 hwc_rect fullFrame = (struct hwc_rect) {0, 0,(int)ctx->dpyAttr[mDpy].xres, in generateROI()
486 (int)ctx->dpyAttr[mDpy].yres}; in generateROI()
516 ctx->listStats[mDpy].lRoi = roi; in generateROI()
518 resetROI(ctx, mDpy); in generateROI()
521 ctx->listStats[mDpy].lRoi.left, ctx->listStats[mDpy].lRoi.top, in generateROI()
522 ctx->listStats[mDpy].lRoi.right, ctx->listStats[mDpy].lRoi.bottom); in generateROI()
526 hwc_rect l_roi = ctx->listStats[mDpy].lRoi; in trimAgainstROI()
527 hwc_rect r_roi = ctx->listStats[mDpy].rRoi; in trimAgainstROI()
542 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in validateAndApplyROI()
544 hwc_rect_t visibleRectL = ctx->listStats[mDpy].lRoi; in validateAndApplyROI()
545 hwc_rect_t visibleRectR = ctx->listStats[mDpy].rRoi; in validateAndApplyROI()
590 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in generateROI()
591 int lSplit = getLeftSplit(ctx, mDpy); in generateROI()
593 int hw_h = (int)ctx->dpyAttr[mDpy].yres; in generateROI()
594 int hw_w = (int)ctx->dpyAttr[mDpy].xres; in generateROI()
646 ctx->listStats[mDpy].lRoi = l_roi; in generateROI()
647 ctx->listStats[mDpy].rRoi = r_roi; in generateROI()
650 resetROI(ctx, mDpy); in generateROI()
654 ctx->listStats[mDpy].lRoi.left, ctx->listStats[mDpy].lRoi.top, in generateROI()
655 ctx->listStats[mDpy].lRoi.right, ctx->listStats[mDpy].lRoi.bottom, in generateROI()
656 ctx->listStats[mDpy].rRoi.left, ctx->listStats[mDpy].rRoi.top, in generateROI()
657 ctx->listStats[mDpy].rRoi.right, ctx->listStats[mDpy].rRoi.bottom); in generateROI()
665 const int numAppLayers = ctx->listStats[mDpy].numAppLayers; in tryFullFrame()
668 if(sIdleFallBack && !ctx->listStats[mDpy].secureUI) { in tryFullFrame()
669 ALOGD_IF(isDebug(), "%s: Idle fallback dpy %d",__FUNCTION__, mDpy); in tryFullFrame()
673 if(isSkipPresent(ctx, mDpy)) { in tryFullFrame()
676 isSkipPresent(ctx, mDpy)); in tryFullFrame()
680 if(mDpy > HWC_DISPLAY_PRIMARY && (priDispW > MAX_DISPLAY_DIM) && in tryFullFrame()
681 (ctx->dpyAttr[mDpy].xres < MAX_DISPLAY_DIM)) { in tryFullFrame()
692 if(ctx->dpyAttr[mDpy].mActionSafePresent in tryFullFrame()
693 || ctx->dpyAttr[mDpy].mDownScaleMode) { in tryFullFrame()
703 if(!canUseRotator(ctx, mDpy)) { in tryFullFrame()
705 __FUNCTION__, mDpy); in tryFullFrame()
713 (ctx->dpyAttr[mDpy].xres > 1024) && in tryFullFrame()
740 if((mDpy > HWC_DISPLAY_PRIMARY) && in fullMDPComp()
746 const int numAppLayers = ctx->listStats[mDpy].numAppLayers; in fullMDPComp()
760 mDpy >= HWC_DISPLAY_EXTERNAL && in fullMDPComp()
809 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in cacheBasedComp()
829 ALOGD_IF(isDebug(),"%s: batching failed, dpy %d",__FUNCTION__, mDpy); in cacheBasedComp()
841 if((mDpy > HWC_DISPLAY_PRIMARY) and in cacheBasedComp()
868 const int numAppLayers = ctx->listStats[mDpy].numAppLayers; in loadBasedComp()
871 ctx->mOverlay->availablePipes(mDpy, Overlay::MIXER_DEFAULT)); in loadBasedComp()
950 if(mDpy or isSecurePresent(ctx, mDpy) or in isLoadBasedCompDoable()
951 isYuvPresent(ctx, mDpy)) { in isLoadBasedCompDoable()
960 isSkipPresent(ctx, mDpy) || (list->flags & HWC_GEOMETRY_CHANGED) || in canPartialUpdate()
961 mDpy ) { in canPartialUpdate()
978 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in videoOnlyComp()
985 if(!isYuvPresent(ctx, mDpy) or (mdpCount == 0)) { in videoOnlyComp()
992 if(!isSecurePresent(ctx, mDpy) && secureOnly){ in videoOnlyComp()
1018 ALOGD_IF(isDebug(), "%s: Video marked SKIP dpy %d", __FUNCTION__, mDpy); in isYUVDoable()
1022 if(layer->transform & HWC_TRANSFORM_ROT_90 && !canUseRotator(ctx,mDpy)) { in isYUVDoable()
1214 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in updateLayerCache()
1238 int nYuvCount = ctx->listStats[mDpy].yuvCount; in updateYUV()
1240 int nYuvIndex = ctx->listStats[mDpy].yuvIndices[index]; in updateYUV()
1299 if(!ctx->mFBUpdate[mDpy]->prepare(ctx, list, fbRect, mCurrentFrame.fbZ)) in postHeuristicsHandling()
1349 if(!ctx->mOverlay->validateAndSet(mDpy, ctx->dpyAttr[mDpy].fd)) { in postHeuristicsHandling()
1351 ,__FUNCTION__, mDpy); in postHeuristicsHandling()
1412 const int numLayers = ctx->listStats[mDpy].numAppLayers; in prepare()
1439 if(ctx->listStats[mDpy].isDisplayAnimating) { in prepare()
1441 if(ctx->mAnimationState[mDpy] == ANIMATION_STOPPED) { in prepare()
1443 ctx->mAnimationState[mDpy] = ANIMATION_STARTED; in prepare()
1450 ctx->mAnimationState[mDpy] = ANIMATION_STOPPED; in prepare()
1460 resetROI(ctx, mDpy); in prepare()
1500 pipeSpecs.dpy = mDpy; in allocSplitVGPipesfor4k2k()
1563 return configureNonSplit(ctx, layer, mDpy, mdpFlags, zOrder, isFg, dest, in configure()
1593 pipeSpecs.dpy = mDpy; in allocLayerPipes()
1616 return configureSourceSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, isFg, in configure4k2kYuv()
1632 if(ctx->listStats[mDpy].numAppLayers > MAX_NUM_APP_LAYERS) { in draw()
1643 LayerProp *layerProp = ctx->layerProp[mDpy]; in draw()
1645 int numHwLayers = ctx->listStats[mDpy].numAppLayers; in draw()
1684 __FUNCTION__, mDpy); in draw()
1695 __FUNCTION__, mDpy); in draw()
1730 __FUNCTION__, mDpy); in draw()
1746 const int lSplit = getLeftSplit(ctx, mDpy); in adjustForSourceSplit()
1774 const int lSplit = getLeftSplit(ctx, mDpy); in acquireMDPPipes()
1783 pipeSpecs.needsScaling = qhwc::needsScalingWithSplit(ctx, layer, mDpy); in acquireMDPPipes()
1784 pipeSpecs.dpy = mDpy; in acquireMDPPipes()
1789 hwc_rect_t l_roi = ctx->listStats[mDpy].lRoi; in acquireMDPPipes()
1790 hwc_rect_t r_roi = ctx->listStats[mDpy].rRoi; in acquireMDPPipes()
1817 const int lSplit = getLeftSplit(ctx, mDpy); in allocLayerPipes()
1842 const int lSplit = getLeftSplit(ctx, mDpy); in configure4k2kYuv()
1853 return configureSourceSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, isFg, in configure4k2kYuv()
1877 return configureSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, isFg, lDest, in configure()
1893 if(ctx->listStats[mDpy].numAppLayers > MAX_NUM_APP_LAYERS) { in draw()
1904 LayerProp *layerProp = ctx->layerProp[mDpy]; in draw()
1906 int numHwLayers = ctx->listStats[mDpy].numAppLayers; in draw()
1944 __FUNCTION__, mDpy); in draw()
1955 __FUNCTION__, mDpy); in draw()
2032 pipeSpecs.dpy = mDpy; in acquireMDPPipes()
2049 bool primarySplitAlways = (mDpy == HWC_DISPLAY_PRIMARY) and in acquireMDPPipes()
2051 int lSplit = getLeftSplit(ctx, mDpy); in acquireMDPPipes()
2123 ctx->mLayerRotMap[mDpy]->add(layer, *rot); in configure()