msm: mdss: provide buffer height when getting plane size

When calculating the plane sizes the buffer height is what should
be passed into mdss_mdp_get_plane_sizes.

Change-Id: I3e4bab0fbfed1e2f34dbe757768a72c9a7916919
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
This commit is contained in:
Terence Hampson 2015-06-22 16:43:28 -04:00 committed by David Keitel
parent 56f473ee35
commit ac1cdfd7a7

View file

@ -51,6 +51,7 @@ struct mdss_mdp_writeback_ctx {
u32 opmode; u32 opmode;
struct mdss_mdp_format_params *dst_fmt; struct mdss_mdp_format_params *dst_fmt;
u16 img_width; u16 img_width;
u16 img_height;
u16 width; u16 width;
u16 height; u16 height;
struct mdss_rect dst_rect; struct mdss_rect dst_rect;
@ -236,7 +237,7 @@ static int mdss_mdp_writeback_format_setup(struct mdss_mdp_writeback_ctx *ctx,
return -EINVAL; return -EINVAL;
} }
mdss_mdp_get_plane_sizes(fmt, ctx->img_width, ctx->height, mdss_mdp_get_plane_sizes(fmt, ctx->img_width, ctx->img_height,
&ctx->dst_planes, &ctx->dst_planes,
ctx->opmode & MDSS_MDP_OP_BWC_EN, rotation); ctx->opmode & MDSS_MDP_OP_BWC_EN, rotation);
@ -366,6 +367,7 @@ static int mdss_mdp_writeback_prepare_wfd(struct mdss_mdp_ctl *ctl, void *arg)
ctx->opmode = 0; ctx->opmode = 0;
ctx->img_width = ctl->width; ctx->img_width = ctl->width;
ctx->img_height = ctl->height;
ctx->width = ctl->width; ctx->width = ctl->width;
ctx->height = ctl->height; ctx->height = ctl->height;
ctx->dst_rect.x = 0; ctx->dst_rect.x = 0;
@ -421,6 +423,7 @@ static int mdss_mdp_writeback_prepare_rot(struct mdss_mdp_ctl *ctl, void *arg)
ctx->opmode |= ctx->bwc_mode; ctx->opmode |= ctx->bwc_mode;
ctx->img_width = item->output.width; ctx->img_width = item->output.width;
ctx->img_height = item->output.height;
ctx->width = ctx->dst_rect.w = item->dst_rect.w; ctx->width = ctx->dst_rect.w = item->dst_rect.w;
ctx->height = ctx->dst_rect.h = item->dst_rect.h; ctx->height = ctx->dst_rect.h = item->dst_rect.h;
ctx->dst_rect.x = item->dst_rect.x; ctx->dst_rect.x = item->dst_rect.x;