diff --git a/libweston/backend-drm/fb.c b/libweston/backend-drm/fb.c index 8304217d0..74b8bc05d 100644 --- a/libweston/backend-drm/fb.c +++ b/libweston/backend-drm/fb.c @@ -678,7 +678,7 @@ drm_can_scanout_dmabuf(struct weston_backend *backend, static bool drm_fb_compatible_with_plane(struct drm_fb *fb, struct drm_plane *plane, - struct weston_view *view) + struct weston_paint_node *pnode) { struct drm_device *device = plane->device; struct drm_backend *b = device->backend; @@ -705,7 +705,8 @@ drm_fb_compatible_with_plane(struct drm_fb *fb, struct drm_plane *plane, drm_debug(b, "\t\t\t\t[%s] not assigning view %s on %s, " "plane %d (format %s (0x%lx) with modifier 0x%llx) not supported\n", drm_output_get_plane_type_name(plane), - view->internal_name, drm_output_get_plane_type_name(plane), + pnode->view->internal_name, + drm_output_get_plane_type_name(plane), plane->plane_id, fb->format->drm_format_name, (unsigned long) fb->format->format, (unsigned long long) fb->modifier); @@ -823,7 +824,7 @@ drm_fb_get_from_paint_node(struct drm_output_state *state, if (plane->type == WDRM_PLANE_TYPE_CURSOR) continue; - if (drm_fb_compatible_with_plane(fb, plane, pnode->view)) + if (drm_fb_compatible_with_plane(fb, plane, pnode)) fb->plane_mask |= 1 << (plane->plane_idx); } if (fb->plane_mask == 0) {