drm: Pass paint node to drm_fb_compatible_with_plane

The backends shouldn't care about views as much as they do,
so pass the paint node.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2026-03-13 15:35:58 -05:00
parent 69efa21e08
commit f4a56f057f

View file

@ -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) {