• Home
  • Raw
  • Download

Lines Matching refs:mDpy

71 MDPComp::MDPComp(int dpy):mDpy(dpy){};  in MDPComp()
79 (mDpy == 0) ? "\"PRIMARY\"" : in dump()
80 (mDpy == 1) ? "\"EXTERNAL\"" : "\"VIRTUAL\""); in dump()
87 if(isDisplaySplit(ctx, mDpy)) { in dump()
90 ctx->listStats[mDpy].lRoi.left, ctx->listStats[mDpy].lRoi.top, in dump()
91 ctx->listStats[mDpy].lRoi.right, in dump()
92 ctx->listStats[mDpy].lRoi.bottom, in dump()
93 ctx->listStats[mDpy].rRoi.left,ctx->listStats[mDpy].rRoi.top, in dump()
94 ctx->listStats[mDpy].rRoi.right, in dump()
95 ctx->listStats[mDpy].rRoi.bottom); in dump()
98 ctx->listStats[mDpy].lRoi.left,ctx->listStats[mDpy].lRoi.top, in dump()
99 ctx->listStats[mDpy].lRoi.right, in dump()
100 ctx->listStats[mDpy].lRoi.bottom); in dump()
217 const int numLayers = ctx->listStats[mDpy].numAppLayers; in reset()
219 ctx->mOverlay->clear(mDpy); in reset()
220 ctx->mLayerRotMap[mDpy]->clear(); in reset()
285 LayerProp *layerProp = ctx->layerProp[mDpy]; in setMDPCompLayerFlags()
287 for(int index = 0; index < ctx->listStats[mDpy].numAppLayers; index++) { in setMDPCompLayerFlags()
308 isSkipPresent(ctx, mDpy)) { in setRedraw()
506 __FUNCTION__,mDpy); in isFrameDoable()
549 hwc_rect_t roi = ctx->listStats[mDpy].lRoi; in trimAgainstROI()
560 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in validateAndApplyROI()
561 hwc_rect_t visibleRect = ctx->listStats[mDpy].lRoi; in validateAndApplyROI()
601 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in generateROI()
606 hwc_rect fullFrame = (struct hwc_rect) {0, 0,(int)ctx->dpyAttr[mDpy].xres, in generateROI()
607 (int)ctx->dpyAttr[mDpy].yres}; in generateROI()
630 ctx->listStats[mDpy].lRoi = roi; in generateROI()
632 resetROI(ctx, mDpy); in generateROI()
635 ctx->listStats[mDpy].lRoi.left, ctx->listStats[mDpy].lRoi.top, in generateROI()
636 ctx->listStats[mDpy].lRoi.right, ctx->listStats[mDpy].lRoi.bottom); in generateROI()
641 hwc_rect roi = getUnion(ctx->listStats[mDpy].lRoi, in trimAgainstROI()
642 ctx->listStats[mDpy].rRoi); in trimAgainstROI()
662 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in validateAndApplyROI()
664 hwc_rect_t visibleRectL = ctx->listStats[mDpy].lRoi; in validateAndApplyROI()
665 hwc_rect_t visibleRectR = ctx->listStats[mDpy].rRoi; in validateAndApplyROI()
711 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in generateROI()
712 int lSplit = getLeftSplit(ctx, mDpy); in generateROI()
714 int hw_h = (int)ctx->dpyAttr[mDpy].yres; in generateROI()
715 int hw_w = (int)ctx->dpyAttr[mDpy].xres; in generateROI()
763 ctx->listStats[mDpy].lRoi = l_roi; in generateROI()
764 ctx->listStats[mDpy].rRoi = r_roi; in generateROI()
767 resetROI(ctx, mDpy); in generateROI()
771 ctx->listStats[mDpy].lRoi.left, ctx->listStats[mDpy].lRoi.top, in generateROI()
772 ctx->listStats[mDpy].lRoi.right, ctx->listStats[mDpy].lRoi.bottom, in generateROI()
773 ctx->listStats[mDpy].rRoi.left, ctx->listStats[mDpy].rRoi.top, in generateROI()
774 ctx->listStats[mDpy].rRoi.right, ctx->listStats[mDpy].rRoi.bottom); in generateROI()
782 const int numAppLayers = ctx->listStats[mDpy].numAppLayers; in tryFullFrame()
785 if(ctx->listStats[mDpy].mAIVVideoMode) { in tryFullFrame()
787 __FUNCTION__, mDpy); in tryFullFrame()
793 if(sIdleFallBack && !ctx->listStats[mDpy].secureUI && in tryFullFrame()
794 !ctx->listStats[mDpy].secureRGBCount && in tryFullFrame()
795 (ctx->listStats[mDpy].numAppLayers > 1)) { in tryFullFrame()
796 ALOGD_IF(isDebug(), "%s: Idle fallback dpy %d",__FUNCTION__, mDpy); in tryFullFrame()
800 if(isSkipPresent(ctx, mDpy)) { in tryFullFrame()
803 isSkipPresent(ctx, mDpy)); in tryFullFrame()
815 __FUNCTION__,mDpy); in tryFullFrame()
820 if(ctx->dpyAttr[mDpy].mActionSafePresent in tryFullFrame()
821 || ctx->dpyAttr[mDpy].mMDPScalingMode) { in tryFullFrame()
831 if(!canUseRotator(ctx, mDpy)) { in tryFullFrame()
833 __FUNCTION__, mDpy); in tryFullFrame()
842 if( mdpHw.is8x26() && (ctx->dpyAttr[mDpy].xres > 1024) && in tryFullFrame()
869 const int numAppLayers = ctx->listStats[mDpy].numAppLayers; in fullMDPComp()
907 const int numAppLayers = ctx->listStats[mDpy].numAppLayers; in fullMDPCompWithPTOR()
909 ctx->mOverlay->availablePipes(mDpy, Overlay::MIXER_DEFAULT)); in fullMDPCompWithPTOR()
912 if (mDpy || !ctx->mCopyBit[mDpy]) { in fullMDPCompWithPTOR()
918 if ((numAppLayers > stagesForMDP) || isSkipPresent(ctx, mDpy) || in fullMDPCompWithPTOR()
919 isYuvPresent(ctx, mDpy) || mCurrentFrame.dropCount || in fullMDPCompWithPTOR()
920 isSecurePresent(ctx, mDpy)) { in fullMDPCompWithPTOR()
952 if (!isPeripheral(dispFrame, ctx->mViewFrame[mDpy]) || in fullMDPCompWithPTOR()
957 ((int)ctx->dpyAttr[mDpy].xres * (int)ctx->dpyAttr[mDpy].yres)) { in fullMDPCompWithPTOR()
1016 if (!ctx->mCopyBit[mDpy]->prepareOverlap(ctx, list)) { in fullMDPCompWithPTOR()
1027 private_handle_t *renderBuf = ctx->mCopyBit[mDpy]->getCurrentRenderBuffer(); in fullMDPCompWithPTOR()
1157 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in cacheBasedComp()
1179 ALOGD_IF(isDebug(),"%s: batching failed, dpy %d",__FUNCTION__, mDpy); in cacheBasedComp()
1210 const int numAppLayers = ctx->listStats[mDpy].numAppLayers; in loadBasedComp()
1213 ctx->mOverlay->availablePipes(mDpy, Overlay::MIXER_DEFAULT)); in loadBasedComp()
1292 if(mDpy or isSecurePresent(ctx, mDpy) or in isLoadBasedCompDoable()
1293 isYuvPresent(ctx, mDpy)) { in isLoadBasedCompDoable()
1302 isSkipPresent(ctx, mDpy) || (list->flags & HWC_GEOMETRY_CHANGED) || in canPartialUpdate()
1303 !sIsPartialUpdateActive || mDpy ) { in canPartialUpdate()
1306 if(ctx->listStats[mDpy].secureUI) in canPartialUpdate()
1328 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in videoOnlyComp()
1329 if(!isSecurePresent(ctx, mDpy)) { in videoOnlyComp()
1338 if(sIdleFallBack && (ctx->listStats[mDpy].numAppLayers > 1)) { in videoOnlyComp()
1339 ALOGD_IF(isDebug(), "%s: Idle fallback dpy %d",__FUNCTION__, mDpy); in videoOnlyComp()
1349 if(!isYuvPresent(ctx, mDpy) or (mdpCount == 0)) { in videoOnlyComp()
1381 if(ctx->listStats[mDpy].mAIVVideoMode) { in tryMDPOnlyLayers()
1383 __FUNCTION__, mDpy); in tryMDPOnlyLayers()
1399 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in mdpOnlyLayersComp()
1400 if(!isSecurePresent(ctx, mDpy) && !ctx->listStats[mDpy].secureUI) { in mdpOnlyLayersComp()
1409 if(sIdleFallBack && (ctx->listStats[mDpy].numAppLayers > 1)) { in mdpOnlyLayersComp()
1410 ALOGD_IF(isDebug(), "%s: Idle fallback dpy %d",__FUNCTION__, mDpy); in mdpOnlyLayersComp()
1416 if (!ctx->listStats[mDpy].secureRGBCount) { in mdpOnlyLayersComp()
1436 ALOGD_IF(isDebug(),"%s: batching failed, dpy %d",__FUNCTION__, mDpy); in mdpOnlyLayersComp()
1459 ALOGD_IF(isDebug(), "%s: Video marked SKIP dpy %d", __FUNCTION__, mDpy); in isYUVDoable()
1463 if(has90Transform(layer) && !canUseRotator(ctx, mDpy)) { in isYUVDoable()
1493 __FUNCTION__, mDpy); in isSecureRGBDoable()
1676 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in updateLayerCache()
1701 for (size_t i = 0; i < (size_t)ctx->listStats[mDpy].numAppLayers; i++) { in dropNonAIVLayers()
1718 int nYuvCount = ctx->listStats[mDpy].yuvCount; in updateYUV()
1720 int nYuvIndex = ctx->listStats[mDpy].yuvIndices[index]; in updateYUV()
1749 int nSecureRGBCount = ctx->listStats[mDpy].secureRGBCount; in updateSecureRGB()
1751 int nSecureRGBIndex = ctx->listStats[mDpy].secureRGBIndices[index]; in updateSecureRGB()
1807 if(!ctx->mFBUpdate[mDpy]->prepare(ctx, list, fbRect, mCurrentFrame.fbZ)) in postHeuristicsHandling()
1857 if(!ctx->mOverlay->validateAndSet(mDpy, ctx->dpyAttr[mDpy].fd)) { in postHeuristicsHandling()
1859 ,__FUNCTION__, mDpy); in postHeuristicsHandling()
1876 if((mDpy > HWC_DISPLAY_PRIMARY) and in resourceCheck()
1897 __FUNCTION__, mDpy); in resourceCheck()
1960 if((ctx->listStats[mDpy].yuvCount == frame.mdpCount) || in onlyVideosUpdating()
1969 if(!mDpy && qdutils::MDPVersion::getInstance().isDynFpsSupported() && in setDynRefreshRate()
1971 uint32_t refreshRate = ctx->dpyAttr[mDpy].refreshRate; in setDynRefreshRate()
1979 refreshRate = ctx->listStats[mDpy].refreshRateRequest; in setDynRefreshRate()
1981 setRefreshRate(ctx, mDpy, refreshRate); in setDynRefreshRate()
1995 const int numLayers = ctx->listStats[mDpy].numAppLayers; in prepare()
1996 if(mDpy == HWC_DISPLAY_PRIMARY) { in prepare()
2008 if(!mDpy) in prepare()
2023 setRefreshRate(ctx, mDpy, ctx->dpyAttr[mDpy].refreshRate); in prepare()
2030 if(ctx->listStats[mDpy].isDisplayAnimating) { in prepare()
2032 if(ctx->mAnimationState[mDpy] == ANIMATION_STOPPED) { in prepare()
2034 ctx->mAnimationState[mDpy] = ANIMATION_STARTED; in prepare()
2040 setRefreshRate(ctx, mDpy, ctx->dpyAttr[mDpy].refreshRate); in prepare()
2045 ctx->mAnimationState[mDpy] = ANIMATION_STOPPED; in prepare()
2053 if(ctx->listStats[mDpy].mAIVVideoMode) { in prepare()
2064 resetROI(ctx, mDpy); in prepare()
2069 ALOGE_IF(sSimulationFlags && (mDpy == HWC_DISPLAY_PRIMARY), in prepare()
2073 if ((ctx->mMDP.version == qdutils::MDP_V3_0_5) && ctx->mCopyBit[mDpy] && in prepare()
2076 for(int i = 0; i < ctx->listStats[mDpy].numAppLayers; i++) { in prepare()
2117 pipeSpecs.dpy = mDpy; in allocSplitVGPipesfor4k2k()
2138 fd = ctx->mCopyBit[mDpy]->drawOverlap(ctx, list); in drawOverlap()
2192 return configureNonSplit(ctx, layer, mDpy, mdpFlags, zOrder, dest, in configure()
2222 pipeSpecs.dpy = mDpy; in allocLayerPipes()
2245 return configureSourceSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, in configure4k2kYuv()
2262 LayerProp *layerProp = ctx->layerProp[mDpy]; in draw()
2264 int numHwLayers = ctx->listStats[mDpy].numAppLayers; in draw()
2303 __FUNCTION__, mDpy); in draw()
2314 __FUNCTION__, mDpy); in draw()
2335 if (!mDpy && (index != -1)) { in draw()
2336 hnd = ctx->mCopyBit[mDpy]->getCurrentRenderBuffer(); in draw()
2355 __FUNCTION__, mDpy); in draw()
2371 const int lSplit = getLeftSplit(ctx, mDpy); in adjustForSourceSplit()
2399 const int lSplit = getLeftSplit(ctx, mDpy); in acquireMDPPipes()
2408 pipeSpecs.needsScaling = qhwc::needsScalingWithSplit(ctx, layer, mDpy); in acquireMDPPipes()
2409 pipeSpecs.dpy = mDpy; in acquireMDPPipes()
2414 hwc_rect_t l_roi = ctx->listStats[mDpy].lRoi; in acquireMDPPipes()
2415 hwc_rect_t r_roi = ctx->listStats[mDpy].rRoi; in acquireMDPPipes()
2442 const int lSplit = getLeftSplit(ctx, mDpy); in allocLayerPipes()
2467 const int lSplit = getLeftSplit(ctx, mDpy); in configure4k2kYuv()
2477 return configureSourceSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, in configure4k2kYuv()
2500 return configureSplit(ctx, layer, mDpy, mdpFlagsL, zOrder, lDest, in configure()
2517 LayerProp *layerProp = ctx->layerProp[mDpy]; in draw()
2519 int numHwLayers = ctx->listStats[mDpy].numAppLayers; in draw()
2557 __FUNCTION__, mDpy); in draw()
2568 __FUNCTION__, mDpy); in draw()
2584 if (!mDpy && (index != -1)) { in draw()
2585 hnd = ctx->mCopyBit[mDpy]->getCurrentRenderBuffer(); in draw()
2636 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in validateAndApplyROI()
2637 hwc_rect_t visibleRect = ctx->listStats[mDpy].lRoi; in validateAndApplyROI()
2679 int numAppLayers = ctx->listStats[mDpy].numAppLayers; in generateROI()
2685 hwc_rect fullFrame = (struct hwc_rect) {0, 0,(int)ctx->dpyAttr[mDpy].xres, in generateROI()
2686 (int)ctx->dpyAttr[mDpy].yres}; in generateROI()
2710 if (isDisplaySplit(ctx, mDpy)) { in generateROI()
2727 ctx->listStats[mDpy].lRoi = roi; in generateROI()
2733 ctx->listStats[mDpy].lRoi = lRoi; in generateROI()
2737 resetROI(ctx, mDpy); in generateROI()
2741 ctx->listStats[mDpy].lRoi.left, ctx->listStats[mDpy].lRoi.top, in generateROI()
2742 ctx->listStats[mDpy].lRoi.right, ctx->listStats[mDpy].lRoi.bottom, in generateROI()
2743 ctx->listStats[mDpy].rRoi.left, ctx->listStats[mDpy].rRoi.top, in generateROI()
2744 ctx->listStats[mDpy].rRoi.right, ctx->listStats[mDpy].rRoi.bottom); in generateROI()
2755 if(qdutils::MDPVersion::getInstance().isPartialUpdateEnabled() && !mDpy) in acquireMDPPipes()
2766 pipeSpecs.dpy = mDpy; in acquireMDPPipes()
2784 bool primarySplitAlways = (mDpy == HWC_DISPLAY_PRIMARY) and in acquireMDPPipes()
2786 const uint32_t lSplit = getLeftSplit(ctx, mDpy); in acquireMDPPipes()
2847 if(qdutils::MDPVersion::getInstance().isPartialUpdateEnabled() && !mDpy) { in configure()
2866 if(ctx->listStats[mDpy].mAIVVideoMode && isYuvBuffer(hnd)) { in configure()
2867 updateCoordinates(ctx, crop, dst, mDpy); in configure()
2871 calcExtDisplayPosition(ctx, hnd, mDpy, crop, dst, transform, orient); in configure()
2885 ctx->mLayerRotMap[mDpy]->add(layer, *rot); in configure()
2888 BwcPM::setBwc(ctx, mDpy, hnd, crop, dst, transform, downscale, in configure()
3036 if ((sPerfHintWindow < 0) || mDpy || !sLibPerfHint) { in setPerfHint()