From e8e7627ae9b067d80a462e7b5b51c0efd1953656 Mon Sep 17 00:00:00 2001 From: Saurabh Shah Date: Wed, 12 Jun 2013 16:08:06 -0700 Subject: [PATCH] hwc: Don't use yuv count for fb Z order. In video-only cases, don't use yuv count for fb Z order, instead use the mdp count which indicates how many video layers are actually being sent to overlays. Change-Id: I53ab4316fbb17f5d054066ef2dd85d89183d6a8c --- libhwcomposer/hwc_mdpcomp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhwcomposer/hwc_mdpcomp.cpp b/libhwcomposer/hwc_mdpcomp.cpp index 720b1c62..43962568 100644 --- a/libhwcomposer/hwc_mdpcomp.cpp +++ b/libhwcomposer/hwc_mdpcomp.cpp @@ -778,7 +778,7 @@ int MDPComp::prepare(hwc_context_t *ctx, hwc_display_contents_1_t* list) { //Destination over mCurrentFrame.fbZ = -1; if(mCurrentFrame.fbCount) - mCurrentFrame.fbZ = ctx->listStats[mDpy].yuvCount; + mCurrentFrame.fbZ = mCurrentFrame.mdpCount; mCurrentFrame.map(); if(!programYUV(ctx, list)) {