From 715bb59eead0adfe1eee710b51bbef33ccae9884 Mon Sep 17 00:00:00 2001 From: Benjamin Chan Date: Fri, 7 Oct 2016 14:49:39 -0400 Subject: msm: mdss: Add interface to support dest-scaler partial update When destination scaler is used, the partial update ROI setting from the layer mixer is not correct to program the panel ROI. We need an extra panel ROI setting in such usecase. CRs-Fixed: 1082694 Change-Id: Ieda5d43b6c52987464cf88aba6526da4441ee1d9 Signed-off-by: Benjamin Chan --- include/uapi/linux/msm_mdp_ext.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/uapi/linux') diff --git a/include/uapi/linux/msm_mdp_ext.h b/include/uapi/linux/msm_mdp_ext.h index 24f1e7c7b742..3bd8bea8ae0d 100644 --- a/include/uapi/linux/msm_mdp_ext.h +++ b/include/uapi/linux/msm_mdp_ext.h @@ -125,6 +125,12 @@ DESTINATION SCALER FLAG CONFIGURATION */ #define MDP_DESTSCALER_ENHANCER_UPDATE 0x4 +/* + * Indicating a partial update to panel ROI. ROI can be + * applied anytime when Destination scaler is enabled. + */ +#define MDP_DESTSCALER_ROI_ENABLE 0x8 + /********************************************************************** VALIDATE/COMMIT FLAG CONFIGURATION **********************************************************************/ @@ -405,6 +411,12 @@ struct mdp_destination_scaler_data { * A userspace pointer points to struct mdp_scale_data_v2. */ uint64_t __user scale; + + /* + * Panel ROI is used when partial update is required in + * current commit call. + */ + struct mdp_rect panel_roi; }; /* -- cgit v1.2.3