summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJeevan Shriram <jshriram@codeaurora.org>2015-01-21 17:54:33 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:37:59 -0700
commit341887ec2d62ec973960614d628919f2ef59a8e6 (patch)
tree77443aa537ee7a0afbac37a6bf16d85aa677addf /include
parentff8a520372c7f1e5bc5f2ac9abddfc10054bbb7c (diff)
msm: mdss: fix issue in calculating decimated dimensions
Width and height are not properly calculated when decimation is involved. When there is scaling on a pipe, the required number of pixels are wrongly programmed resulting in pipe hangs and leading to TLB SYNC issues. This change handles proper calculation of decimated width and height. Change-Id: Iadc4b201b32dda3dba6afe23070f349677be417c Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/msm_mdp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/msm_mdp.h b/include/uapi/linux/msm_mdp.h
index f5548a3baf5e..92872461a733 100644
--- a/include/uapi/linux/msm_mdp.h
+++ b/include/uapi/linux/msm_mdp.h
@@ -665,6 +665,7 @@ enum mdss_mdp_blend_op {
BLEND_OP_MAX,
};
+#define DECIMATED_DIMENSION(dim, deci) (((dim) + ((1 << (deci)) - 1)) >> (deci))
#define MAX_PLANES 4
struct mdp_scale_data {
uint8_t enable_pxl_ext;