Linux Samsung SOC development
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/exynos: don't commit if plane scaling is required
@ 2015-03-19 14:27 Gustavo Padovan
  2015-03-19 14:27 ` [PATCH 2/3] drm/exynos: reset temporary value after write to register Gustavo Padovan
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Gustavo Padovan @ 2015-03-19 14:27 UTC (permalink / raw)
  To: linux-samsung-soc; +Cc: Gustavo Padovan, dri-devel

From: Gustavo Padovan <gustavo.padovan@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.padovan@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

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-04-17 13:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-19 14:27 [PATCH 1/3] drm/exynos: don't commit if plane scaling is required Gustavo Padovan
2015-03-19 14:27 ` [PATCH 2/3] drm/exynos: reset temporary value after write to register Gustavo Padovan
2015-04-17  5:49   ` Joonyoung Shim
2015-03-19 14:27 ` [PATCH 3/3] drm/exynos: enable/disable blend based on pixel format Gustavo Padovan
2015-04-17  6:16   ` Joonyoung Shim
     [not found]     ` <trinity-82a40b8e-a2bb-425f-a1c6-15696573bf32-1429273719156@3capp-gmx-bs40>
2015-04-17 12:31       ` Fw: " Tobias Jakobi
2015-04-17 12:55       ` Tobias Jakobi
2015-04-17 13:07         ` Ville Syrjälä
2015-03-19 23:11 ` [PATCH 1/3] drm/exynos: don't commit if plane scaling is required Tobias Jakobi
2015-03-25 23:19 ` Tobias Jakobi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox