backend-drm: Don't try to import SHM buffers as drm_fb

It won't work.

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

@ -681,7 +681,7 @@ drm_output_prepare_plane_view(struct drm_output_state *state,
struct weston_buffer *buffer; struct weston_buffer *buffer;
struct wl_shm_buffer *shmbuf; struct wl_shm_buffer *shmbuf;
struct drm_fb *fb; struct drm_fb *fb = NULL;
wl_list_init(&zpos_candidate_list); wl_list_init(&zpos_candidate_list);
@ -691,6 +691,7 @@ drm_output_prepare_plane_view(struct drm_output_state *state,
buffer = ev->surface->buffer_ref.buffer; buffer = ev->surface->buffer_ref.buffer;
shmbuf = wl_shm_buffer_get(buffer->resource); shmbuf = wl_shm_buffer_get(buffer->resource);
if (!shmbuf)
fb = drm_fb_get_from_view(state, ev, try_view_on_plane_failure_reasons); fb = drm_fb_get_from_view(state, ev, try_view_on_plane_failure_reasons);
if (!shmbuf && !fb) if (!shmbuf && !fb)
return NULL; return NULL;

Loading…
Cancel
Save