HWC: Minor fix in 4k2kYUVsplit feature
Increment fbZ when 4k2kyuvindex matches with fbZ,
otherwise we see momentary flicker as right half of
4k2k YUV layer and fb layer have same z-order.
Change-Id: Ia900e102b6d4670b9bfdfd4e52ef360d1d813cab
diff --git a/libhwcomposer/hwc_mdpcomp.cpp b/libhwcomposer/hwc_mdpcomp.cpp
index 7eaf4d5..49ab400 100644
--- a/libhwcomposer/hwc_mdpcomp.cpp
+++ b/libhwcomposer/hwc_mdpcomp.cpp
@@ -1380,7 +1380,7 @@
for(int index = 0; index < n4k2kYuvCount; index++){
int n4k2kYuvIndex =
ctx->listStats[mDpy].yuv4k2kIndices[index];
- if(mCurrentFrame.fbZ > n4k2kYuvIndex){
+ if(mCurrentFrame.fbZ >= n4k2kYuvIndex){
mCurrentFrame.fbZ += 1;
}
}
@@ -1602,7 +1602,7 @@
if((dst.left > lSplit) || (dst.right < lSplit)) {
mCurrentFrame.mdpCount += 1;
}
- if(mCurrentFrame.fbZ > n4k2kYuvIndex){
+ if(mCurrentFrame.fbZ >= n4k2kYuvIndex){
mCurrentFrame.fbZ += 1;
}
}