From: Gustavo Padovan <gustavo.pado...@collabora.co.uk>

exynos doesn't show scaled planes properly on the screen so
disable the feature and show a message to the user.

Signed-off-by: Gustavo Padovan <gustavo.pado...@collabora.co.uk>
---
 drivers/gpu/drm/exynos/exynos_mixer.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c 
b/drivers/gpu/drm/exynos/exynos_mixer.c
index 2e3bc57..a95fe84 100644
--- a/drivers/gpu/drm/exynos/exynos_mixer.c
+++ b/drivers/gpu/drm/exynos/exynos_mixer.c
@@ -550,6 +550,12 @@ static void mixer_graph_buffer(struct mixer_context *ctx, 
int win)
                fmt = ARGB8888;
        }
 
+       if (win_data->crtc_width != win_data->src_width ||
+           win_data->crtc_height != win_data->src_height) {
+               DRM_DEBUG_KMS("plane scaling not supported\n");
+               return;
+       }
+
        /* 2x scaling feature */
        x_ratio = 0;
        y_ratio = 0;
-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to