diff options
| author | abeykun <abeykun@codeaurora.org> | 2016-11-28 13:02:01 -0500 |
|---|---|---|
| committer | abeykun <abeykun@codeaurora.org> | 2016-12-01 14:59:54 -0500 |
| commit | 98a396274bb0666a2d8ebb80f79e552b43aa37e5 (patch) | |
| tree | 2f131047136f356d49af10ea62fb78392ed9209c /drivers/gpu | |
| parent | c7ef2fa30934421806f873b8c40278376618c486 (diff) | |
drm/msm/sde: update pixel extension uapi
Patch changes pixel extension uapi to match FB driver and exposes
QSEED3 filter configuration defines.
Change-Id: Id5dba041df77d1c663742fcda74f420ca3d228f9
Signed-off-by: abeykun <abeykun@codeaurora.org>
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/msm/sde/sde_plane.c | 53 |
1 files changed, 23 insertions, 30 deletions
diff --git a/drivers/gpu/drm/msm/sde/sde_plane.c b/drivers/gpu/drm/msm/sde/sde_plane.c index fa0a0d1f41b1..63e19b3f0bea 100644 --- a/drivers/gpu/drm/msm/sde/sde_plane.c +++ b/drivers/gpu/drm/msm/sde/sde_plane.c @@ -1721,22 +1721,19 @@ static inline void _sde_plane_set_scaler_v1(struct sde_plane *psde, void *usr) pe->vert_filter[i] = scale_v1.vert_filter[i]; } for (i = 0; i < SDE_MAX_PLANES; i++) { - pe->num_ext_pxls_left[i] = scale_v1.lr.num_pxls_start[i]; - pe->num_ext_pxls_right[i] = scale_v1.lr.num_pxls_end[i]; - pe->left_ftch[i] = scale_v1.lr.ftch_start[i]; - pe->right_ftch[i] = scale_v1.lr.ftch_end[i]; - pe->left_rpt[i] = scale_v1.lr.rpt_start[i]; - pe->right_rpt[i] = scale_v1.lr.rpt_end[i]; - pe->roi_w[i] = scale_v1.lr.roi[i]; - - pe->num_ext_pxls_top[i] = scale_v1.tb.num_pxls_start[i]; - pe->num_ext_pxls_btm[i] = scale_v1.tb.num_pxls_end[i]; - pe->top_ftch[i] = scale_v1.tb.ftch_start[i]; - pe->btm_ftch[i] = scale_v1.tb.ftch_end[i]; - pe->top_rpt[i] = scale_v1.tb.rpt_start[i]; - pe->btm_rpt[i] = scale_v1.tb.rpt_end[i]; - pe->roi_h[i] = scale_v1.tb.roi[i]; + pe->left_ftch[i] = scale_v1.pe.left_ftch[i]; + pe->right_ftch[i] = scale_v1.pe.right_ftch[i]; + pe->left_rpt[i] = scale_v1.pe.left_rpt[i]; + pe->right_rpt[i] = scale_v1.pe.right_rpt[i]; + pe->roi_w[i] = scale_v1.pe.num_ext_pxls_lr[i]; + + pe->top_ftch[i] = scale_v1.pe.top_ftch[i]; + pe->btm_ftch[i] = scale_v1.pe.btm_ftch[i]; + pe->top_rpt[i] = scale_v1.pe.top_rpt[i]; + pe->btm_rpt[i] = scale_v1.pe.btm_rpt[i]; + pe->roi_h[i] = scale_v1.pe.num_ext_pxls_tb[i]; } + psde->pixel_ext_usr = true; SDE_DEBUG_PLANE(psde, "user property data copied\n"); @@ -1814,21 +1811,17 @@ static inline void _sde_plane_set_scaler_v2(struct sde_plane *psde, cfg->de.adjust_c[i] = scale_v2.de.adjust_c[i]; } for (i = 0; i < SDE_MAX_PLANES; i++) { - pe->num_ext_pxls_left[i] = scale_v2.lr.num_pxls_start[i]; - pe->num_ext_pxls_right[i] = scale_v2.lr.num_pxls_end[i]; - pe->left_ftch[i] = scale_v2.lr.ftch_start[i]; - pe->right_ftch[i] = scale_v2.lr.ftch_end[i]; - pe->left_rpt[i] = scale_v2.lr.rpt_start[i]; - pe->right_rpt[i] = scale_v2.lr.rpt_end[i]; - pe->roi_w[i] = scale_v2.lr.roi[i]; - - pe->num_ext_pxls_top[i] = scale_v2.tb.num_pxls_start[i]; - pe->num_ext_pxls_btm[i] = scale_v2.tb.num_pxls_end[i]; - pe->top_ftch[i] = scale_v2.tb.ftch_start[i]; - pe->btm_ftch[i] = scale_v2.tb.ftch_end[i]; - pe->top_rpt[i] = scale_v2.tb.rpt_start[i]; - pe->btm_rpt[i] = scale_v2.tb.rpt_end[i]; - pe->roi_h[i] = scale_v2.tb.roi[i]; + pe->left_ftch[i] = scale_v2.pe.left_ftch[i]; + pe->right_ftch[i] = scale_v2.pe.right_ftch[i]; + pe->left_rpt[i] = scale_v2.pe.left_rpt[i]; + pe->right_rpt[i] = scale_v2.pe.right_rpt[i]; + pe->roi_w[i] = scale_v2.pe.num_ext_pxls_lr[i]; + + pe->top_ftch[i] = scale_v2.pe.top_ftch[i]; + pe->btm_ftch[i] = scale_v2.pe.btm_ftch[i]; + pe->top_rpt[i] = scale_v2.pe.top_rpt[i]; + pe->btm_rpt[i] = scale_v2.pe.btm_rpt[i]; + pe->roi_h[i] = scale_v2.pe.num_ext_pxls_tb[i]; } psde->pixel_ext_usr = true; |
