All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm: make sure visible is set to false if fb is null
@ 2014-10-24 18:00 Gustavo Padovan
  2014-10-24 18:00 ` [PATCH 2/2] drm/i915: remove unneeded visible check Gustavo Padovan
  2014-10-27 14:23 ` [PATCH 1/2] drm: make sure visible is set to false if fb is null Ville Syrjälä
  0 siblings, 2 replies; 4+ messages in thread
From: Gustavo Padovan @ 2014-10-24 18:00 UTC (permalink / raw)
  To: intel-gfx; +Cc: Gustavo Padovan, dri-devel

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

We can't let visible set true while the fb is null, some places of
the code only check for visible to base its decisions.

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

diff --git a/drivers/gpu/drm/drm_plane_helper.c b/drivers/gpu/drm/drm_plane_helper.c
index 827ec1a..fe4d1fb 100644
--- a/drivers/gpu/drm/drm_plane_helper.c
+++ b/drivers/gpu/drm/drm_plane_helper.c
@@ -127,6 +127,11 @@ int drm_plane_helper_check_update(struct drm_plane *plane,
 		return -ERANGE;
 	}
 
+	if (!fb) {
+		*visible = false;
+		return 0;
+	}
+
 	*visible = drm_rect_clip_scaled(src, dest, clip, hscale, vscale);
 	if (!*visible)
 		/*
-- 
1.9.3

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

end of thread, other threads:[~2014-10-27 14:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-24 18:00 [PATCH 1/2] drm: make sure visible is set to false if fb is null Gustavo Padovan
2014-10-24 18:00 ` [PATCH 2/2] drm/i915: remove unneeded visible check Gustavo Padovan
2014-10-27 14:23 ` [PATCH 1/2] drm: make sure visible is set to false if fb is null Ville Syrjälä
2014-10-27 14:27   ` Daniel Vetter

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.