compositor-drm: simplify drm_output_find_special_plane()
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 27 Oct 2017 11:06:51 +0000 (14:06 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 18 Apr 2018 08:53:54 +0000 (11:53 +0300)
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@collabora.co.uk>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Acked-by: Derek Foreman <derekf@osg.samsung.com>
libweston/compositor-drm.c

index add07c0..65f4378 100644 (file)
@@ -3596,14 +3596,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 ||