backend-drm: Early-out in plane assignment for unimportable buffers

No sense walking the plane list every frame if we can't use it because
it's neither a SHM buffer nor a client buffer we can directly import as
a framebuffer.

Signed-off-by: Daniel Stone <daniels@collabora.com>
dev
Daniel Stone 3 years ago
parent f508603420
commit 9e379db082
  1. 2
      libweston/backend-drm/state-propose.c

@ -773,6 +773,8 @@ drm_output_prepare_plane_view(struct drm_output_state *state,
buffer = ev->surface->buffer_ref.buffer;
shmbuf = wl_shm_buffer_get(buffer->resource);
fb = drm_fb_get_from_view(state, ev, try_view_on_plane_failure_reasons);
if (!shmbuf && !fb)
return NULL;
/* assemble a list with possible candidates */
wl_list_for_each(plane, &b->plane_list, link) {

Loading…
Cancel
Save