Merge "h/q/d: Optimize framebuffer layer update"
diff --git a/libhwcomposer/hwc.cpp b/libhwcomposer/hwc.cpp
index 1de864a..f1c54f2 100644
--- a/libhwcomposer/hwc.cpp
+++ b/libhwcomposer/hwc.cpp
@@ -484,9 +484,6 @@
case HWC_COLOR_FILL:
value[0] = 1;
break;
- case HWC_MAX_WRITEBACK_WIDTH:
- value[0] = qdutils::MAX_DISPLAY_DIM;
- break;
default:
return -EINVAL;
}
diff --git a/libhwcomposer/hwc_mdpcomp.cpp b/libhwcomposer/hwc_mdpcomp.cpp
index 440cbd5..438c9d2 100644
--- a/libhwcomposer/hwc_mdpcomp.cpp
+++ b/libhwcomposer/hwc_mdpcomp.cpp
@@ -114,7 +114,7 @@
sDebugLogs = true;
}
- if(property_get("persist.hwc.partialupdate.enable", property, NULL) > 0) {
+ if(property_get("persist.hwc.partialupdate", property, NULL) > 0) {
if((atoi(property) != 0) && ctx->mMDP.panel == MIPI_CMD_PANEL &&
qdutils::MDPVersion::getInstance().is8x74v2())
sEnablePartialFrameUpdate = true;
@@ -1313,13 +1313,6 @@
ALOGD_IF(isDebug(), "%s: Exceeds MAX_PIPES_PER_MIXER",__FUNCTION__);
return false;
}
-
- double size = calcMDPBytesRead(ctx, list);
- if(!bandwidthCheck(ctx, size)) {
- ALOGD_IF(isDebug(), "%s: Exceeds bandwidth",__FUNCTION__);
- return false;
- }
-
return true;
}
@@ -1362,20 +1355,6 @@
return size;
}
-bool MDPComp::bandwidthCheck(hwc_context_t *ctx, const double& size) {
- //Skip for targets where no device tree value for bw is supplied
- if(sMaxBw <= 0.0) {
- return true;
- }
-
- double panelRefRate =
- 1000000000.0 / ctx->dpyAttr[mDpy].vsync_period;
- if((size * panelRefRate) > (sMaxBw - sBwClaimed)) {
- return false;
- }
- return true;
-}
-
bool MDPComp::hwLimitationsCheck(hwc_context_t* ctx,
hwc_display_contents_1_t* list) {
diff --git a/libhwcomposer/hwc_mdpcomp.h b/libhwcomposer/hwc_mdpcomp.h
index c5f46e3..c941bd5 100644
--- a/libhwcomposer/hwc_mdpcomp.h
+++ b/libhwcomposer/hwc_mdpcomp.h
@@ -179,8 +179,6 @@
/* calcs bytes read by MDP in gigs for a given frame */
double calcMDPBytesRead(hwc_context_t *ctx,
hwc_display_contents_1_t* list);
- /* checks if the required bandwidth exceeds a certain max */
- bool bandwidthCheck(hwc_context_t *ctx, const double& size);
/* checks if MDP/MDSS can process current list w.r.to HW limitations
* All peculiar HW limitations should go here */
bool hwLimitationsCheck(hwc_context_t* ctx, hwc_display_contents_1_t* list);