[PATCH weston v6 52/73] compositor-drm: simplify drm_output_find_special_plane()

Pekka Paalanen ppaalanen at gmail.com
Fri Feb 16 14:57:37 UTC 2018


From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

As these planes are allocated on output enable and freed on output
disable, there cannot be a match in the pending_output_list.

Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
---
 libweston/compositor-drm.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
index f38766c5..c816d008 100644
--- a/libweston/compositor-drm.c
+++ b/libweston/compositor-drm.c
@@ -3614,14 +3614,6 @@ drm_output_find_special_plane(struct drm_backend *b, struct drm_output *output,
 		/* On some platforms, primary/cursor planes can roam
 		 * between different CRTCs, so make sure we don't claim the
 		 * same plane for two outputs. */
-		wl_list_for_each(tmp, &b->compositor->pending_output_list,
-				 base.link) {
-			if (tmp->cursor_plane == plane ||
-			    tmp->scanout_plane == plane) {
-				found_elsewhere = true;
-				break;
-			}
-		}
 		wl_list_for_each(tmp, &b->compositor->output_list,
 				 base.link) {
 			if (tmp->cursor_plane == plane ||
-- 
2.13.6



More information about the wayland-devel mailing list