disp: msm: sde: correct rounded corner bottom start check

Bottom start must be lesser than display height by at least
one line.

Change-Id: I36fbf68ee6733c020f235dca04c4b00c1e5a2312
Signed-off-by: Anjaneya Prasad Musunuri <aprasad@codeaurora.org>
This commit is contained in:
Anjaneya Prasad Musunuri
2021-08-04 20:13:32 +05:30
parent 6bf96605eb
commit a3f8e9ab8f
2 changed files with 5 additions and 3 deletions

View File

@@ -680,9 +680,9 @@ static int sde_hw_rc_check_mask_cfg(
}
if (r2_enable) {
if ((hw_cfg->displayv - cfg_param_02) < 1) {
SDE_ERROR("invalid max cfg_param_02:%d\n",
cfg_param_02);
if ((hw_cfg->panel_height - cfg_param_02) < 1) {
SDE_ERROR("invalid max cfg_param_02:%d, panel_height:%d\n",
cfg_param_02, hw_cfg->panel_height);
return -EINVAL;
}