mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
Merge "disp: msm: sde: skip RM reserve for primary in cwb on/off usecase"
This commit is contained in:
commit
75c310ae3e
1 changed files with 7 additions and 0 deletions
|
|
@ -919,6 +919,12 @@ static int _sde_encoder_atomic_check_reserve(struct drm_encoder *drm_enc,
|
|||
return ret;
|
||||
}
|
||||
|
||||
/* Skip RM allocation for Primary during CWB usecase */
|
||||
if (!crtc_state->mode_changed && !crtc_state->active_changed &&
|
||||
crtc_state->connectors_changed && (conn_state->crtc ==
|
||||
conn_state->connector->state->crtc))
|
||||
goto skip_reserve;
|
||||
|
||||
/* Reserve dynamic resources, indicating atomic_check phase */
|
||||
ret = sde_rm_reserve(&sde_kms->rm, drm_enc, crtc_state,
|
||||
conn_state, true);
|
||||
|
|
@ -929,6 +935,7 @@ static int _sde_encoder_atomic_check_reserve(struct drm_encoder *drm_enc,
|
|||
return ret;
|
||||
}
|
||||
|
||||
skip_reserve:
|
||||
/**
|
||||
* Update connector state with the topology selected for the
|
||||
* resource set validated. Reset the topology if we are
|
||||
|
|
|
|||
Loading…
Reference in a new issue