hwc: Use maximum mixer width supported to identify split display
MDP pipe width should be used to find the number of overlay
pipes needed for configuring a hwc layer. Split display should
use the max mixer width supported by the H/W to check against display
resolution to detect split displays.
Change-Id: I76f97b33ea4a11270a6e33a3942bce0c4b4bae1f
diff --git a/libhwcomposer/hwc_utils.cpp b/libhwcomposer/hwc_utils.cpp
index 8139013..bc3491e 100644
--- a/libhwcomposer/hwc_utils.cpp
+++ b/libhwcomposer/hwc_utils.cpp
@@ -2352,10 +2352,9 @@
bool isDisplaySplit(hwc_context_t* ctx, int dpy) {
qdutils::MDPVersion& mdpHw = qdutils::MDPVersion::getInstance();
- if(ctx->dpyAttr[dpy].xres > mdpHw.getMaxPipeWidth()) {
+ if(ctx->dpyAttr[dpy].xres > mdpHw.getMaxMixerWidth()) {
return true;
}
- //For testing we could split primary via device tree values
if(dpy == HWC_DISPLAY_PRIMARY && mdpHw.getRightSplit()) {
return true;
}