drm: Stop using weston_view in find_plane_for_paint_node

We can get the surface through the paint node.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2026-03-16 12:09:17 -05:00
parent c7421c5b66
commit dadc0913e8

View file

@ -559,7 +559,6 @@ drm_output_find_plane_for_paint_node(struct drm_output_state *state,
struct drm_plane_state *ps = NULL;
struct drm_plane_handle *handle;
struct weston_view *ev = pnode->view;
struct weston_buffer *buffer;
struct drm_fb *fb = NULL;
uint64_t current_lowest_zpos = need_underlay ?
@ -748,7 +747,7 @@ drm_output_find_plane_for_paint_node(struct drm_output_state *state,
/* If the surface buffer has an in-fence fd, but the plane doesn't
* support fences, we can't place the buffer on this plane. */
if (ev->surface->acquire_fence_fd >= 0 &&
if (pnode->surface->acquire_fence_fd >= 0 &&
plane->props[WDRM_PLANE_IN_FENCE_FD].prop_id == 0) {
drm_debug(b, "\t\t\t\t[%s] not placing paint node %s on %s: "
"no in-fence support\n",