Merge "hwc: Disable idle invalidation for command mode panels"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
a1af059bba
@@ -123,6 +123,8 @@ bool MDPComp::init(hwc_context_t *ctx) {
|
||||
sMaxPipesPerMixer = min(val, MAX_PIPES_PER_MIXER);
|
||||
}
|
||||
|
||||
if(ctx->mMDP.panel != MIPI_CMD_PANEL) {
|
||||
// Idle invalidation is not necessary on command mode panels
|
||||
long idle_timeout = DEFAULT_IDLE_TIME;
|
||||
if(property_get("debug.mdpcomp.idletime", property, NULL) > 0) {
|
||||
if(atoi(property) != 0)
|
||||
@@ -134,10 +136,12 @@ bool MDPComp::init(hwc_context_t *ctx) {
|
||||
idleInvalidator = IdleInvalidator::getInstance();
|
||||
|
||||
if(idleInvalidator == NULL) {
|
||||
ALOGE("%s: failed to instantiate idleInvalidator object", __FUNCTION__);
|
||||
ALOGE("%s: failed to instantiate idleInvalidator object",
|
||||
__FUNCTION__);
|
||||
} else {
|
||||
idleInvalidator->init(timeout_handler, ctx, idle_timeout);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user