compositor-drm: simplify drm_output_find_special_plane()

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>
dev
Pekka Paalanen 7 years ago
parent 9790f87599
commit f857046559
  1. 8
      libweston/compositor-drm.c

@ -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 /* On some platforms, primary/cursor planes can roam
* between different CRTCs, so make sure we don't claim the * between different CRTCs, so make sure we don't claim the
* same plane for two outputs. */ * 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, wl_list_for_each(tmp, &b->compositor->output_list,
base.link) { base.link) {
if (tmp->cursor_plane == plane || if (tmp->cursor_plane == plane ||

Loading…
Cancel
Save