diff options
| author | Ujwal Patel <ujwalp@codeaurora.org> | 2014-12-03 21:54:32 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:36:40 -0700 |
| commit | 6fe2b845dd2a06ebab8ec46620dcba884d38e026 (patch) | |
| tree | 91bc008d217a7b6fbd3cc5bc9753f4033ef9b7d8 | |
| parent | 0db371cd8a5a4b6a1d793112c3e1821af6401908 (diff) | |
msm: mdss: expose correct number of supported blending stages
User-space decides how many layers to send for MDP composition using
max blending stage value passed by the driver. Currently driver sends
this value based on its internal enum value which does not reflect the
correct number of blending stages that HW supports. So user-space makes
independent assumption to derive at correct value by deducting 2. This
is incorrect design and may lead to unforeseen issues. Fix it by sending
correct max blending stage value.
Change-Id: Iaaed7b6824e6ef445ca202fb993d1061811b5ce0
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp.c b/drivers/video/fbdev/msm/mdss_mdp.c index 687d369320fb..a8fbef6e9d9f 100644 --- a/drivers/video/fbdev/msm/mdss_mdp.c +++ b/drivers/video/fbdev/msm/mdss_mdp.c @@ -1095,11 +1095,11 @@ static void mdss_mdp_hw_rev_caps_init(struct mdss_data_type *mdata) case MDSS_MDP_HW_REV_109: case MDSS_MDP_HW_REV_110: mdss_set_quirk(mdata, MDSS_QUIRK_BWCPANIC); - mdata->max_target_zorder = MDSS_MDP_MAX_STAGE; + mdata->max_target_zorder = 7; /* excluding base layer */ mdata->max_cursor_size = 128; break; default: - mdata->max_target_zorder = MDSS_MDP_STAGE_4; + mdata->max_target_zorder = 4; /* excluding base layer */ mdata->max_cursor_size = 64; } } |
