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

Commit b1c44f20 authored by Ping Li's avatar Ping Li
Browse files

drm/msm/sde: Initialize REG_DMA sspp_buf for all the rects



For multirect use cases, REG_DMA needs to initialize sspp_buf
for all rects, including rect_solo, rect_0 and rect_1. This change
adds the missing rect_solo case.

Change-Id: Ic04881eb4dcfcb5621d30c9dea8a068c61817010
Signed-off-by: default avatarPing Li <pingli@codeaurora.org>
parent 3ef19c0b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1603,7 +1603,7 @@ int reg_dmav1_init_sspp_op_v4(int feature, enum sde_sspp idx)
		rc = (is_supported) ? 0 : -ENOTSUPP;

	if (!rc) {
		for (i = SDE_SSPP_RECT_0; i < SDE_SSPP_RECT_MAX; i++) {
		for (i = SDE_SSPP_RECT_SOLO; i < SDE_SSPP_RECT_MAX; i++) {
			rc = reg_dma_buf_init(
				&sspp_buf[i][sspp_feature_map[feature]][idx],
				sspp_feature_reg_dma_sz[feature]);
@@ -2254,7 +2254,7 @@ int reg_dmav1_deinit_sspp_ops(enum sde_sspp idx)
		return -EINVAL;
	}

	for (i = SDE_SSPP_RECT_0; i < SDE_SSPP_RECT_MAX; i++) {
	for (i = SDE_SSPP_RECT_SOLO; i < SDE_SSPP_RECT_MAX; i++) {
		for (j = 0; j < REG_DMA_FEATURES_MAX; j++) {
			if (!sspp_buf[i][j][idx])
				continue;