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

Commit 01bbce0b authored by Krishna Manikandan's avatar Krishna Manikandan
Browse files

disp: msm: sde: avoid wb commit with null output framebuffer



Writeback commit with null output framebuffer is
not a valid usecase. Add support to fail such
scenarios.

Change-Id: I78f89908d95e1f28218491efb9d1d5df3b7608ff
Signed-off-by: default avatarKrishna Manikandan <mkrishn@codeaurora.org>
parent 22f326ff
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -729,11 +729,10 @@ static int sde_encoder_phys_wb_atomic_check(
	SDE_DEBUG("[roi:%u,%u,%u,%u]\n", wb_roi.x, wb_roi.y,
			wb_roi.w, wb_roi.h);

	/* bypass check if commit with no framebuffer */
	fb = sde_wb_connector_state_get_output_fb(conn_state);
	if (!fb) {
		SDE_DEBUG("no output framebuffer\n");
		return 0;
		SDE_ERROR("no output framebuffer\n");
		return -EINVAL;
	}

	SDE_DEBUG("[fb_id:%u][fb:%u,%u]\n", fb->base.id,