Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/exynos: hdmi: replace fb size with mode size from win commit

For default graphic window, mixer_win_commit() sets display size
register as fb size. Calling setplane with smaller fb size than
mode size to default window causes distorted display result. So
this patch replaces fb size with mode size for display size from
the mixer_win_commit().

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Acked-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>

authored by

Seung-Woo Kim and committed by
Inki Dae
129046c6 e2dc3f72

+2 -2
+2 -2
drivers/gpu/drm/exynos/exynos_mixer.c
··· 583 583 /* setup display size */ 584 584 if (ctx->mxr_ver == MXR_VER_128_0_0_184 && 585 585 win == MIXER_DEFAULT_WIN) { 586 - val = MXR_MXR_RES_HEIGHT(win_data->fb_height); 587 - val |= MXR_MXR_RES_WIDTH(win_data->fb_width); 586 + val = MXR_MXR_RES_HEIGHT(win_data->mode_height); 587 + val |= MXR_MXR_RES_WIDTH(win_data->mode_width); 588 588 mixer_reg_write(res, MXR_RESOLUTION, val); 589 589 } 590 590