Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 561fed2b authored by Krishna Chaitanya Devarakonda's avatar Krishna Chaitanya Devarakonda
Browse files

msm: mdss: Set the scaler flag in pipe after copying scaler data



While copying the scaler data from layer to pipe, the scaler flag
might get reset. Set the scalar flag after copying the scaler data.

Change-Id: I20bfef83109aadcac55e780b50b5fd1ea2302d3c
Signed-off-by: default avatarKrishna Chaitanya Devarakonda <kdevarak@codeaurora.org>
parent 450bd44d
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -509,7 +509,6 @@ static int __configure_pipe_params(struct msm_fb_data_type *mfd,
	if (layer->flags & MDP_LAYER_PP)
		pipe->flags |= MDP_OVERLAY_PP_CFG_EN;

	pipe->scaler.enable = (layer->flags & SCALER_ENABLED);
	pipe->is_fg = layer->flags & MDP_LAYER_FORGROUND;
	pipe->img_width = layer->buffer.width & 0x3fff;
	pipe->img_height = layer->buffer.height & 0x3fff;
@@ -541,6 +540,12 @@ static int __configure_pipe_params(struct msm_fb_data_type *mfd,
		pipe->src.x, pipe->src.y, pipe->src.w, pipe->src.h,
		pipe->dst.x, pipe->dst.y, pipe->dst.w, pipe->dst.h);

	if (layer->flags & SCALER_ENABLED)
		memcpy(&pipe->scaler, layer->scale,
			sizeof(struct mdp_scale_data_v2));

	pipe->scaler.enable = (layer->flags & SCALER_ENABLED);

	flags = pipe->flags;
	if (is_single_layer)
		flags |= PERF_CALC_PIPE_SINGLE_LAYER;
@@ -661,9 +666,6 @@ static int __configure_pipe_params(struct msm_fb_data_type *mfd,
		}
	}

	if (layer->flags & SCALER_ENABLED)
		memcpy(&pipe->scaler, layer->scale,
			sizeof(struct mdp_scale_data_v2));
	ret = mdss_mdp_overlay_setup_scaling(pipe);
	if (ret) {
		pr_err("scaling setup failed %d\n", ret);