hwc: Skip load based composition for video playback.
DMA setting cannot be estimated ahead of time,
so do not do load based compostion where videos
can fall to GPU.
Change-Id: I01ccc26044df6bced428bd164f5c50f87aff99fd
diff --git a/libhwcomposer/hwc_mdpcomp.cpp b/libhwcomposer/hwc_mdpcomp.cpp
index 8048d71..0b4cbe0 100644
--- a/libhwcomposer/hwc_mdpcomp.cpp
+++ b/libhwcomposer/hwc_mdpcomp.cpp
@@ -836,7 +836,8 @@
bool MDPComp::isLoadBasedCompDoable(hwc_context_t *ctx,
hwc_display_contents_1_t* list) {
- if(mDpy or isSecurePresent(ctx, mDpy)) {
+ if(mDpy or isSecurePresent(ctx, mDpy) or
+ isYuvPresent(ctx, mDpy)) {
return false;
}
return true;