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

Commit 16c1e902 authored by Lei Zhou's avatar Lei Zhou
Browse files

msm: mdss: ignore buffer mapping if it's solid fill layer



Ignore mdp_buffer mapping when MDP_SOLID_FILL_LAYER is detected.
The client marked this mdp_input_layer as SOLID_FILL layer
without input buffer associated with this layer. MDP hardware
SOLID_FILL feature will be utilized.

Change-Id: Ica48dc5b0be69ac42e2f442d6114781790a3c56a
Signed-off-by: default avatarLei Zhou <leizhou@codeaurora.org>
parent 861a4ae9
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1265,6 +1265,10 @@ int mdss_mdp_layer_pre_commit(struct msm_fb_data_type *mfd,

	mutex_lock(&mdp5_data->list_lock);
	list_for_each_entry_safe(pipe, tmp, &mdp5_data->pipes_used, list) {
		if (pipe->flags & MDP_SOLID_FILL) {
			src_data[i] = NULL;
			continue;
		}
		src_data[i] = __map_layer_buffer(mfd, pipe, layer_list,
			layer_count);
		if (IS_ERR_OR_NULL(src_data[i++])) {
@@ -1288,6 +1292,7 @@ map_err:
	if (ret) {
		mutex_lock(&mdp5_data->list_lock);
		for (i--; i >= 0; i--)
			if (src_data[i])
				mdss_mdp_overlay_buf_free(mfd, src_data[i]);
		mutex_unlock(&mdp5_data->list_lock);
	}