mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-03-22 08:00:52 +01:00
drm: Use surface from paint node in drm_fb_get_from_paint_node
One fewer reasons to keep use the weston_view. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
parent
e58e41e090
commit
caa0e06348
1 changed files with 3 additions and 2 deletions
|
|
@ -745,6 +745,7 @@ drm_fb_get_from_paint_node(struct drm_output_state *state,
|
|||
struct drm_output *output = state->output;
|
||||
struct drm_backend *b = output->backend;
|
||||
struct drm_device *device = output->device;
|
||||
struct weston_surface *surface = pnode->surface;
|
||||
struct weston_view *ev = pnode->view;
|
||||
struct weston_buffer *buffer = ev->surface->buffer_ref.buffer;
|
||||
struct drm_fb_private *private;
|
||||
|
|
@ -753,8 +754,8 @@ drm_fb_get_from_paint_node(struct drm_output_state *state,
|
|||
struct drm_fb *fb;
|
||||
struct drm_plane *plane;
|
||||
|
||||
if (ev->surface->protection_mode == WESTON_SURFACE_PROTECTION_MODE_ENFORCED &&
|
||||
ev->surface->desired_protection > output->base.current_protection) {
|
||||
if (surface->protection_mode == WESTON_SURFACE_PROTECTION_MODE_ENFORCED &&
|
||||
surface->desired_protection > output->base.current_protection) {
|
||||
*try_view_on_plane_failure_reasons |=
|
||||
FAILURE_REASONS_INADEQUATE_CONTENT_PROTECTION;
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue