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:
@@ -778,7 +778,7 @@ int MDPComp::prepare(hwc_context_t *ctx, hwc_display_contents_1_t* list) {
|
|||||||
//Destination over
|
//Destination over
|
||||||
mCurrentFrame.fbZ = -1;
|
mCurrentFrame.fbZ = -1;
|
||||||
if(mCurrentFrame.fbCount)
|
if(mCurrentFrame.fbCount)
|
||||||
mCurrentFrame.fbZ = ctx->listStats[mDpy].yuvCount;
|
mCurrentFrame.fbZ = mCurrentFrame.mdpCount;
|
||||||
|
|
||||||
mCurrentFrame.map();
|
mCurrentFrame.map();
|
||||||
if(!programYUV(ctx, list)) {
|
if(!programYUV(ctx, list)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user