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
This commit is contained in:
Saurabh Shah
2013-06-12 16:08:06 -07:00
parent 2a0c912658
commit e8e7627ae9

View File

@@ -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)) {