diff options
| author | Xiaowen Wu <wxiaowen@codeaurora.org> | 2018-12-11 19:15:36 -0500 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-01-10 01:32:38 -0800 |
| commit | 7894acdb9a3903be2a2a2fe3cc688239e91bbed4 (patch) | |
| tree | dbc39267ba4186621a46db50f7718f7185169da6 /drivers/gpu | |
| parent | 7079e398af68d93842ba8de8816596dcf6a5857e (diff) | |
drm/msm/sde: add panel stacking support
To support transparent panel stacking, application will pass non-panel-
stacking buffer roi to kernel and let kernel to extend to panel-stacking
size. A special flag is defined on source config for this purpose.
Change-Id: I59eb290f0f7b92744972391d7db743e2da12300b
Signed-off-by: Xiaowen Wu <wxiaowen@codeaurora.org>
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/msm/sde/sde_plane.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/sde/sde_plane.c b/drivers/gpu/drm/msm/sde/sde_plane.c index a13315e2322d..91c837ff13dc 100644 --- a/drivers/gpu/drm/msm/sde/sde_plane.c +++ b/drivers/gpu/drm/msm/sde/sde_plane.c @@ -1387,6 +1387,13 @@ static int _sde_plane_mode_set(struct drm_plane *plane, if (cstate->is_shared) { dst.x += cstate->shared_roi.x; dst.y += cstate->shared_roi.y; + + if (sde_plane_get_property(pstate, + PLANE_PROP_SRC_CONFIG) & + BIT(SDE_DRM_LINEPADDING)) { + src.h = cstate->shared_roi.h; + dst.h = cstate->shared_roi.h; + } } } @@ -1806,7 +1813,8 @@ static void _sde_plane_install_properties(struct drm_plane *plane, {SDE_DRM_BLEND_OP_COVERAGE, "coverage"} }; static const struct drm_prop_enum_list e_src_config[] = { - {SDE_DRM_DEINTERLACE, "deinterlace"} + {SDE_DRM_DEINTERLACE, "deinterlace"}, + {SDE_DRM_LINEPADDING, "linepadding"}, }; static const struct drm_prop_enum_list e_fb_translation_mode[] = { {SDE_DRM_FB_NON_SEC, "non_sec"}, |
