hwc: Add DMA pipe support in MDP composition.
This change adds support to MDP composition to use DMA pipes when layer scaling is not needed. Also makes sure not to invoke MDP rotator when DMA pipes are configured since MDP rotator will expect both the DMA pipes to available for performing rotation. In such cases, we let the first frame of rotated video frame to fall back to FB. Change-Id: I3c3697dd2713ce9b86ba1e23192ec5841abd25ec
This commit is contained in:
@@ -299,7 +299,6 @@ void setListStats(hwc_context_t *ctx,
|
||||
ctx->listStats[dpy].skipCount = 0;
|
||||
ctx->listStats[dpy].needsAlphaScale = false;
|
||||
ctx->listStats[dpy].yuvCount = 0;
|
||||
ctx->mDMAInUse = false;
|
||||
|
||||
for (size_t i = 0; i < list->numHwLayers; i++) {
|
||||
hwc_layer_1_t const* layer = &list->hwLayers[i];
|
||||
@@ -318,8 +317,8 @@ void setListStats(hwc_context_t *ctx,
|
||||
ctx->listStats[dpy].yuvIndices[yuvCount] = i;
|
||||
yuvCount++;
|
||||
|
||||
if((layer->transform & HWC_TRANSFORM_ROT_90) && !ctx->mDMAInUse)
|
||||
ctx->mDMAInUse = true;
|
||||
if(layer->transform & HWC_TRANSFORM_ROT_90)
|
||||
ctx->mNeedsRotator = true;
|
||||
}
|
||||
|
||||
if(!ctx->listStats[dpy].needsAlphaScale)
|
||||
|
||||
Reference in New Issue
Block a user