diff options
| author | Animesh Kishore <animeshk@codeaurora.org> | 2017-04-11 19:40:24 +0530 |
|---|---|---|
| committer | Animesh Kishore <animeshk@codeaurora.org> | 2017-04-24 13:59:22 +0530 |
| commit | 8704b3275410c265ee04ed6f0c81c9b975b42227 (patch) | |
| tree | ee7d07ec6b1e3e468c6e111e131fa2f16781409e /include/uapi | |
| parent | 25ed77f5bb9a1af7e4635c5aa91505fae041ea27 (diff) | |
msm: mdss: Add multi-rectangle validation support
Rectangle number is being passed to kernel from
userspace. Added required validation checks.
CRs-Fixed: 2000464
Change-Id: I179caa1a86beb9a8f5f3f9b9ef489bf1fd12c73e
Signed-off-by: Animesh Kishore <animeshk@codeaurora.org>
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/linux/msm_mdp_ext.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/uapi/linux/msm_mdp_ext.h b/include/uapi/linux/msm_mdp_ext.h index 35029f227f8b..da9ee3bcc525 100644 --- a/include/uapi/linux/msm_mdp_ext.h +++ b/include/uapi/linux/msm_mdp_ext.h @@ -178,6 +178,12 @@ VALIDATE/COMMIT FLAG CONFIGURATION */ #define MDP_COMMIT_CWB_DSPP 0x1000 +/* + * Flag to indicate that rectangle number is being assigned + * by userspace in multi-rectangle mode + */ +#define MDP_COMMIT_RECT_NUM 0x2000 + #define MDP_COMMIT_VERSION_1_0 0x00010000 #define OUT_LAYER_COLOR_SPACE @@ -425,8 +431,14 @@ struct mdp_input_layer { */ int error_code; + /* + * For source pipes supporting multi-rectangle, this field identifies + * the rectangle index of the source pipe. + */ + uint32_t rect_num; + /* 32bits reserved value for future usage. */ - uint32_t reserved[6]; + uint32_t reserved[5]; }; struct mdp_output_layer { |
