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

Commit 1e80fb1d authored by Sravanthi Kollukuduru's avatar Sravanthi Kollukuduru Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/sde: fix incorrect mixer height seen in dump



Panel height is seen as default for mixer height in dumps
even when destination scaler is enabled. Fix given to
reflect the correct mixer height.

Change-Id: I550ba71de2b27844fd6c948cbfa9f1ca0db9cd64
Signed-off-by: default avatarSravanthi Kollukuduru <skolluku@codeaurora.org>
parent ddb4395e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -5357,7 +5357,7 @@ static int _sde_debugfs_status_show(struct seq_file *s, void *data)
	struct drm_plane_state *state;
	struct sde_crtc_state *cstate;

	int i, out_width;
	int i, out_width, out_height;

	if (!s || !s->private)
		return -EINVAL;
@@ -5369,6 +5369,7 @@ static int _sde_debugfs_status_show(struct seq_file *s, void *data)
	mutex_lock(&sde_crtc->crtc_lock);
	mode = &crtc->state->adjusted_mode;
	out_width = sde_crtc_get_mixer_width(sde_crtc, cstate, mode);
	out_height = sde_crtc_get_mixer_height(sde_crtc, cstate, mode);

	seq_printf(s, "crtc:%d width:%d height:%d\n", crtc->base.id,
				mode->hdisplay, mode->vdisplay);
@@ -5384,7 +5385,7 @@ static int _sde_debugfs_status_show(struct seq_file *s, void *data)
		else
			seq_printf(s, "\tmixer:%d ctl:%d width:%d height:%d\n",
				m->hw_lm->idx - LM_0, m->hw_ctl->idx - CTL_0,
				out_width, mode->vdisplay);
				out_width, out_height);
	}

	seq_puts(s, "\n");