mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-02 07:17:58 +02:00
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:
parent
c7421c5b66
commit
dadc0913e8
1 changed files with 1 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue