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
This commit is contained in:
@@ -2352,10 +2352,9 @@ int getLeftSplit(hwc_context_t *ctx, const int& dpy) {
|
|||||||
|
|
||||||
bool isDisplaySplit(hwc_context_t* ctx, int dpy) {
|
bool isDisplaySplit(hwc_context_t* ctx, int dpy) {
|
||||||
qdutils::MDPVersion& mdpHw = qdutils::MDPVersion::getInstance();
|
qdutils::MDPVersion& mdpHw = qdutils::MDPVersion::getInstance();
|
||||||
if(ctx->dpyAttr[dpy].xres > mdpHw.getMaxPipeWidth()) {
|
if(ctx->dpyAttr[dpy].xres > mdpHw.getMaxMixerWidth()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
//For testing we could split primary via device tree values
|
|
||||||
if(dpy == HWC_DISPLAY_PRIMARY && mdpHw.getRightSplit()) {
|
if(dpy == HWC_DISPLAY_PRIMARY && mdpHw.getRightSplit()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user