|
|
@ -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; |
|
|
|