OSDN Git Service

drm/msm/dpu: Fix scale params in plane validation
authorKalyan Thota <kalyan_t@codeaurora.org>
Thu, 30 Jul 2020 13:38:56 +0000 (19:08 +0530)
committerRob Clark <robdclark@chromium.org>
Mon, 17 Aug 2020 19:23:47 +0000 (12:23 -0700)
commit4c978caf08aa155bdeadd9e2d4b026d4ce97ebd0
treeb96a2eac774851b54e6b215f51f157d1e8bfeb42
parentccc862b957c6413b008fbe458034372847992d7f
drm/msm/dpu: Fix scale params in plane validation

Plane validation uses an API drm_calc_scale which will
return src/dst value as a scale ratio.

when viewing the range on a scale the values should fall in as

Upscale ratio < Unity scale < Downscale ratio for src/dst formula

Fix the min and max scale ratios to suit the API accordingly.

Signed-off-by: Kalyan Thota <kalyan_t@codeaurora.org>
Tested-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c