Lines Matching refs:dpy

88 static int getDpyforExternalDisplay(hwc_context_t *ctx, int dpy) {  in getDpyforExternalDisplay()  argument
89 if(dpy == HWC_DISPLAY_EXTERNAL && ctx->mVirtualonExtActive) in getDpyforExternalDisplay()
91 return dpy; in getDpyforExternalDisplay()
145 for(int dpy = 0; dpy < numDisplays; dpy++) { in setDMAState() local
146 hwc_display_contents_1_t *list = displays[dpy]; in setDMAState()
159 if (canUseRotator(ctx, dpy) && in setDMAState()
170 if(dpy) { in setDMAState()
242 static void scaleDisplayFrame(hwc_context_t *ctx, int dpy, in scaleDisplayFrame() argument
244 uint32_t origXres = ctx->dpyAttr[dpy].xres; in scaleDisplayFrame()
245 uint32_t origYres = ctx->dpyAttr[dpy].yres; in scaleDisplayFrame()
246 uint32_t newXres = ctx->dpyAttr[dpy].xres_new; in scaleDisplayFrame()
247 uint32_t newYres = ctx->dpyAttr[dpy].yres_new; in scaleDisplayFrame()
269 const int dpy = HWC_DISPLAY_PRIMARY; in hwc_prepare_primary() local
272 ctx->dpyAttr[dpy].isActive) { in hwc_prepare_primary()
274 if (ctx->dpyAttr[dpy].customFBSize && in hwc_prepare_primary()
276 scaleDisplayFrame(ctx, dpy, list); in hwc_prepare_primary()
278 reset_layer_prop(ctx, dpy, (int)list->numHwLayers - 1); in hwc_prepare_primary()
279 setListStats(ctx, list, dpy); in hwc_prepare_primary()
281 fbComp = (ctx->mMDPComp[dpy]->prepare(ctx, list) < 0); in hwc_prepare_primary()
285 if(not ctx->mFBUpdate[dpy]->prepareAndValidate(ctx, list, fbZ)) { in hwc_prepare_primary()
286 ctx->mOverlay->clear(dpy); in hwc_prepare_primary()
287 ctx->mLayerRotMap[dpy]->clear(); in hwc_prepare_primary()
292 if(ctx->mCopyBit[dpy]) in hwc_prepare_primary()
293 ctx->mCopyBit[dpy]->prepare(ctx, list, dpy); in hwc_prepare_primary()
304 const int dpy = HWC_DISPLAY_EXTERNAL; in hwc_prepare_external() local
307 ctx->dpyAttr[dpy].isActive && in hwc_prepare_external()
308 ctx->dpyAttr[dpy].connected) { in hwc_prepare_external()
309 reset_layer_prop(ctx, dpy, (int)list->numHwLayers - 1); in hwc_prepare_external()
310 if(!ctx->dpyAttr[dpy].isPause) { in hwc_prepare_external()
311 ctx->dpyAttr[dpy].isConfiguring = false; in hwc_prepare_external()
312 setListStats(ctx, list, dpy); in hwc_prepare_external()
313 if(ctx->mMDPComp[dpy]->prepare(ctx, list) < 0) { in hwc_prepare_external()
315 if(not ctx->mFBUpdate[dpy]->prepareAndValidate(ctx, list, fbZ)) in hwc_prepare_external()
317 ctx->mOverlay->clear(dpy); in hwc_prepare_external()
318 ctx->mLayerRotMap[dpy]->clear(); in hwc_prepare_external()
360 int dpy = getDpyforExternalDisplay(ctx, i); in hwc_prepare() local
361 switch(dpy) { in hwc_prepare()
384 static int hwc_eventControl(struct hwc_composer_device_1* dev, int dpy, in hwc_eventControl() argument
394 ret = hwc_vsync_control(ctx, dpy, enable); in hwc_eventControl()
402 if(dpy == HWC_DISPLAY_PRIMARY) { in hwc_eventControl()
415 static int hwc_setPowerMode(struct hwc_composer_device_1* dev, int dpy, in hwc_setPowerMode() argument
424 __FUNCTION__, mode, dpy); in hwc_setPowerMode()
450 ctx->dpyAttr[dpy].lastPowerMode = value; in hwc_setPowerMode()
451 switch(dpy) { in hwc_setPowerMode()
453 if(ioctl(ctx->dpyAttr[dpy].fd, FBIOBLANK, value) < 0 ) { in hwc_setPowerMode()
465 ctx->dpyAttr[dpy].isActive = not(mode == HWC_POWER_MODE_OFF); in hwc_setPowerMode()
470 const int dpy = HWC_DISPLAY_VIRTUAL; in hwc_setPowerMode() local
472 (not ctx->dpyAttr[dpy].isPause)) { in hwc_setPowerMode()
473 if(!Overlay::displayCommit(ctx->dpyAttr[dpy].fd)) { in hwc_setPowerMode()
478 ctx->dpyAttr[dpy].isActive = not(mode == HWC_POWER_MODE_OFF); in hwc_setPowerMode()
483 if(!Overlay::displayCommit(ctx->dpyAttr[dpy].fd)) { in hwc_setPowerMode()
488 ctx->dpyAttr[dpy].isActive = not(mode == HWC_POWER_MODE_OFF); in hwc_setPowerMode()
495 __FUNCTION__, mode, dpy); in hwc_setPowerMode()
584 const int dpy = HWC_DISPLAY_PRIMARY; in hwc_set_primary() local
585 if (LIKELY(list) && ctx->dpyAttr[dpy].isActive) { in hwc_set_primary()
591 if (ctx->mCopyBit[dpy]) { in hwc_set_primary()
593 copybitDone = ctx->mCopyBit[dpy]->draw(ctx, list, dpy, &fd); in hwc_set_primary()
595 fd = ctx->mMDPComp[dpy]->drawOverlap(ctx, list); in hwc_set_primary()
618 hwc_sync(ctx, list, dpy, fd); in hwc_set_primary()
621 if(ctx->mHwcDebug[dpy]) in hwc_set_primary()
622 ctx->mHwcDebug[dpy]->dumpLayers(list); in hwc_set_primary()
624 if (!ctx->mMDPComp[dpy]->draw(ctx, list)) { in hwc_set_primary()
630 hnd = ctx->mCopyBit[dpy]->getCurrentRenderBuffer(); in hwc_set_primary()
634 int index = ctx->listStats[dpy].renderBufIndexforABC; in hwc_set_primary()
640 if (!ctx->mFBUpdate[dpy]->draw(ctx, hnd)) { in hwc_set_primary()
646 int lSplit = getLeftSplit(ctx, dpy); in hwc_set_primary()
648 ctx->listStats[dpy].lRoi.left, in hwc_set_primary()
649 ctx->listStats[dpy].lRoi.top, in hwc_set_primary()
650 ctx->listStats[dpy].lRoi.right - ctx->listStats[dpy].lRoi.left, in hwc_set_primary()
651 ctx->listStats[dpy].lRoi.bottom - ctx->listStats[dpy].lRoi.top); in hwc_set_primary()
654 ctx->listStats[dpy].rRoi.left - lSplit, in hwc_set_primary()
655 ctx->listStats[dpy].rRoi.top, in hwc_set_primary()
656 ctx->listStats[dpy].rRoi.right - ctx->listStats[dpy].rRoi.left, in hwc_set_primary()
657 ctx->listStats[dpy].rRoi.bottom - ctx->listStats[dpy].rRoi.top); in hwc_set_primary()
659 if(!Overlay::displayCommit(ctx->dpyAttr[dpy].fd, lRoi, rRoi)) { in hwc_set_primary()
660 ALOGE("%s: display commit fail for %d dpy!", __FUNCTION__, dpy); in hwc_set_primary()
676 const int dpy = HWC_DISPLAY_EXTERNAL; in hwc_set_external() local
679 if (LIKELY(list) && ctx->dpyAttr[dpy].isActive && in hwc_set_external()
680 ctx->dpyAttr[dpy].connected && in hwc_set_external()
681 !ctx->dpyAttr[dpy].isPause) { in hwc_set_external()
686 if(ctx->mCopyBit[dpy]) in hwc_set_external()
687 copybitDone = ctx->mCopyBit[dpy]->draw(ctx, list, dpy, &fd); in hwc_set_external()
690 hwc_sync(ctx, list, dpy, fd); in hwc_set_external()
693 if(ctx->mHwcDebug[dpy]) in hwc_set_external()
694 ctx->mHwcDebug[dpy]->dumpLayers(list); in hwc_set_external()
696 if (!ctx->mMDPComp[dpy]->draw(ctx, list)) { in hwc_set_external()
702 ctx->listStats[dpy].extOnlyLayerIndex; in hwc_set_external()
709 hnd = ctx->mCopyBit[dpy]->getCurrentRenderBuffer(); in hwc_set_external()
713 if (!ctx->mFBUpdate[dpy]->draw(ctx, hnd)) { in hwc_set_external()
719 if(!Overlay::displayCommit(ctx->dpyAttr[dpy].fd)) { in hwc_set_external()
720 ALOGE("%s: display commit fail for %d dpy!", __FUNCTION__, dpy); in hwc_set_external()
737 int dpy = getDpyforExternalDisplay(ctx, i); in hwc_set() local
738 switch(dpy) { in hwc_set()
863 for(int dpy = 0; dpy < HWC_NUM_DISPLAY_TYPES; dpy++) { in hwc_dump() local
864 if(ctx->mMDPComp[dpy]) in hwc_dump()
865 ctx->mMDPComp[dpy]->dump(aBuf, ctx); in hwc_dump()