backend-drm: Don't try to import SHM buffers as drm_fb
It won't work. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
@@ -681,7 +681,7 @@ drm_output_prepare_plane_view(struct drm_output_state *state,
|
||||
|
||||
struct weston_buffer *buffer;
|
||||
struct wl_shm_buffer *shmbuf;
|
||||
struct drm_fb *fb;
|
||||
struct drm_fb *fb = NULL;
|
||||
|
||||
wl_list_init(&zpos_candidate_list);
|
||||
|
||||
@@ -691,7 +691,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 = drm_fb_get_from_view(state, ev, try_view_on_plane_failure_reasons);
|
||||
if (!shmbuf && !fb)
|
||||
return NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user