* [PATCH] drm/exynos: hdmi: replace fb size with mode size from win commit
@ 2015-01-30 8:30 Seung-Woo Kim
2015-01-30 8:36 ` Joonyoung Shim
2015-02-04 8:32 ` Inki Dae
0 siblings, 2 replies; 3+ messages in thread
From: Seung-Woo Kim @ 2015-01-30 8:30 UTC (permalink / raw)
To: dri-devel, linux-samsung-soc, inki.dae; +Cc: jy0922.shim, sw0312.kim
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>
---
drivers/gpu/drm/exynos/exynos_mixer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c
index 6766271..086fe0e 100644
--- a/drivers/gpu/drm/exynos/exynos_mixer.c
+++ b/drivers/gpu/drm/exynos/exynos_mixer.c
@@ -584,8 +584,8 @@ static void mixer_graph_buffer(struct mixer_context *ctx, int win)
/* setup display size */
if (ctx->mxr_ver == MXR_VER_128_0_0_184 &&
win == MIXER_DEFAULT_WIN) {
- val = MXR_MXR_RES_HEIGHT(win_data->fb_height);
- val |= MXR_MXR_RES_WIDTH(win_data->fb_width);
+ val = MXR_MXR_RES_HEIGHT(win_data->mode_height);
+ val |= MXR_MXR_RES_WIDTH(win_data->mode_width);
mixer_reg_write(res, MXR_RESOLUTION, val);
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] drm/exynos: hdmi: replace fb size with mode size from win commit
2015-01-30 8:30 [PATCH] drm/exynos: hdmi: replace fb size with mode size from win commit Seung-Woo Kim
@ 2015-01-30 8:36 ` Joonyoung Shim
2015-02-04 8:32 ` Inki Dae
1 sibling, 0 replies; 3+ messages in thread
From: Joonyoung Shim @ 2015-01-30 8:36 UTC (permalink / raw)
To: Seung-Woo Kim, dri-devel, linux-samsung-soc, inki.dae
Hi,
On 01/30/2015 05:30 PM, Seung-Woo Kim wrote:
> 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>
> ---
> drivers/gpu/drm/exynos/exynos_mixer.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c
> index 6766271..086fe0e 100644
> --- a/drivers/gpu/drm/exynos/exynos_mixer.c
> +++ b/drivers/gpu/drm/exynos/exynos_mixer.c
> @@ -584,8 +584,8 @@ static void mixer_graph_buffer(struct mixer_context *ctx, int win)
> /* setup display size */
> if (ctx->mxr_ver == MXR_VER_128_0_0_184 &&
> win == MIXER_DEFAULT_WIN) {
> - val = MXR_MXR_RES_HEIGHT(win_data->fb_height);
> - val |= MXR_MXR_RES_WIDTH(win_data->fb_width);
> + val = MXR_MXR_RES_HEIGHT(win_data->mode_height);
> + val |= MXR_MXR_RES_WIDTH(win_data->mode_width);
> mixer_reg_write(res, MXR_RESOLUTION, val);
> }
>
>
Acked-by: Joonyoung Shim <jy0922.shim@samsung.com>
Thanks.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] drm/exynos: hdmi: replace fb size with mode size from win commit
2015-01-30 8:30 [PATCH] drm/exynos: hdmi: replace fb size with mode size from win commit Seung-Woo Kim
2015-01-30 8:36 ` Joonyoung Shim
@ 2015-02-04 8:32 ` Inki Dae
1 sibling, 0 replies; 3+ messages in thread
From: Inki Dae @ 2015-02-04 8:32 UTC (permalink / raw)
To: Seung-Woo Kim; +Cc: linux-samsung-soc, dri-devel
On 2015년 01월 30일 17:30, Seung-Woo Kim wrote:
> 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().
Applied.
Thanks,
Inki Dae
>
> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
> ---
> drivers/gpu/drm/exynos/exynos_mixer.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c
> index 6766271..086fe0e 100644
> --- a/drivers/gpu/drm/exynos/exynos_mixer.c
> +++ b/drivers/gpu/drm/exynos/exynos_mixer.c
> @@ -584,8 +584,8 @@ static void mixer_graph_buffer(struct mixer_context *ctx, int win)
> /* setup display size */
> if (ctx->mxr_ver == MXR_VER_128_0_0_184 &&
> win == MIXER_DEFAULT_WIN) {
> - val = MXR_MXR_RES_HEIGHT(win_data->fb_height);
> - val |= MXR_MXR_RES_WIDTH(win_data->fb_width);
> + val = MXR_MXR_RES_HEIGHT(win_data->mode_height);
> + val |= MXR_MXR_RES_WIDTH(win_data->mode_width);
> mixer_reg_write(res, MXR_RESOLUTION, val);
> }
>
>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-02-04 8:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-30 8:30 [PATCH] drm/exynos: hdmi: replace fb size with mode size from win commit Seung-Woo Kim
2015-01-30 8:36 ` Joonyoung Shim
2015-02-04 8:32 ` Inki Dae
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.