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

Commit d74d01d5 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents b9ef599c 16c1e902
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1297,6 +1297,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++])) {
@@ -1320,6 +1324,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);
	}