Lines Matching refs:ev
167 drm_output_plane_cursor_has_valid_format(struct weston_view *ev) in drm_output_plane_cursor_has_valid_format() argument
170 wl_shm_buffer_get(ev->surface->buffer_ref.buffer->resource); in drm_output_plane_cursor_has_valid_format()
181 struct weston_view *ev, in drm_output_prepare_overlay_view() argument
196 " couldn't get fb\n", ev); in drm_output_prepare_overlay_view()
204 state->ev = ev; in drm_output_prepare_overlay_view()
207 if (!drm_plane_state_coords_for_view(state, ev, zpos)) { in drm_output_prepare_overlay_view()
209 "unsuitable transform\n", ev); in drm_output_prepare_overlay_view()
218 if (ev->surface->acquire_fence_fd >= 0 && in drm_output_prepare_overlay_view()
221 "no in-fence support\n", ev); in drm_output_prepare_overlay_view()
232 state->in_fence_fd = ev->surface->acquire_fence_fd; in drm_output_prepare_overlay_view()
239 ev, (unsigned long) plane->plane_id); in drm_output_prepare_overlay_view()
247 ev, plane->plane_id); in drm_output_prepare_overlay_view()
253 ev, (unsigned long) plane->plane_id); in drm_output_prepare_overlay_view()
270 cursor_bo_update(struct drm_plane_state *plane_state, struct weston_view *ev) in cursor_bo_update() argument
274 struct weston_buffer *buffer = ev->surface->buffer_ref.buffer; in cursor_bo_update()
302 struct weston_view *ev, uint64_t zpos) in drm_output_prepare_cursor_view() argument
335 if (!drm_plane_state_coords_for_view(plane_state, ev, zpos)) { in drm_output_prepare_cursor_view()
337 "unsuitable transform\n", p_name, ev, p_name); in drm_output_prepare_cursor_view()
348 p_name, ev, p_name); in drm_output_prepare_cursor_view()
358 if (ev != output->cursor_view || in drm_output_prepare_cursor_view()
359 pixman_region32_not_empty(&ev->surface->damage)) { in drm_output_prepare_cursor_view()
367 output->cursor_view = ev; in drm_output_prepare_cursor_view()
368 plane_state->ev = ev; in drm_output_prepare_cursor_view()
375 cursor_bo_update(plane_state, ev); in drm_output_prepare_cursor_view()
388 p_name, ev); in drm_output_prepare_cursor_view()
399 struct weston_view *ev, uint64_t zpos) in drm_output_prepare_cursor_view() argument
407 struct weston_view *ev, in drm_output_prepare_scanout_view() argument
423 if (!weston_view_matches_output_entirely(ev, &output->base)) { in drm_output_prepare_scanout_view()
426 p_name, ev, p_name); in drm_output_prepare_scanout_view()
432 if (ev->surface->acquire_fence_fd >= 0 && in drm_output_prepare_scanout_view()
435 "no in-fence support\n", p_name, ev, p_name); in drm_output_prepare_scanout_view()
441 " couldn't get fb\n", p_name, ev, p_name); in drm_output_prepare_scanout_view()
456 state->ev = ev; in drm_output_prepare_scanout_view()
458 if (!drm_plane_state_coords_for_view(state, ev, zpos)) { in drm_output_prepare_scanout_view()
460 "unsuitable transform\n", p_name, ev, p_name); in drm_output_prepare_scanout_view()
468 " invalid plane state\n", p_name, ev, p_name); in drm_output_prepare_scanout_view()
472 state->in_fence_fd = ev->surface->acquire_fence_fd; in drm_output_prepare_scanout_view()
486 struct weston_view *ev, in drm_output_plane_view_has_valid_format() argument
492 return drm_output_plane_cursor_has_valid_format(ev); in drm_output_plane_view_has_valid_format()
508 struct weston_view *ev, in drm_output_try_view_on_plane() argument
536 ps = drm_output_prepare_cursor_view(state, ev, zpos); in drm_output_try_view_on_plane()
545 weston_view_matches_output_entirely(ev, wet_output); in drm_output_try_view_on_plane()
555 ps = drm_output_prepare_overlay_view(plane, state, ev, mode, in drm_output_try_view_on_plane()
566 ps = drm_output_prepare_scanout_view(state, ev, mode, in drm_output_try_view_on_plane()
586 plane->plane_id, ev, p_name); in drm_output_try_view_on_plane()
637 struct weston_view *ev, in drm_output_prepare_plane_view() argument
655 if (!weston_view_has_valid_buffer(ev)) in drm_output_prepare_plane_view()
658 fb = drm_fb_get_from_view(state, ev); in drm_output_prepare_plane_view()
712 if (!drm_output_plane_view_has_valid_format(plane, state, ev, fb)) { in drm_output_prepare_plane_view()
743 ps = drm_output_try_view_on_plane(plane, state, ev, in drm_output_prepare_plane_view()
749 ev, p_name, zpos); in drm_output_prepare_plane_view()
770 struct weston_view *ev; in drm_output_propose_state() local
846 wl_list_for_each(ev, &output_base->compositor->view_list, link) { in drm_output_propose_state()
854 ev, output->base.name, in drm_output_propose_state()
859 if (!(ev->output_mask & (1u << output->base.id))) { in drm_output_propose_state()
861 "(not on our output)\n", ev); in drm_output_propose_state()
868 &ev->transform.boundingbox, in drm_output_propose_state()
880 "(occluded on our output)\n", ev); in drm_output_propose_state()
888 if (ev->output_mask != (1u << output->base.id)) { in drm_output_propose_state()
890 "(on multiple outputs)\n", ev); in drm_output_propose_state()
894 if (!weston_view_has_valid_buffer(ev)) { in drm_output_propose_state()
896 "(no buffer available)\n", ev); in drm_output_propose_state()
907 "(occluded by renderer views)\n", ev); in drm_output_propose_state()
915 if (ev->surface->protection_mode == WESTON_SURFACE_PROTECTION_MODE_ENFORCED && in drm_output_propose_state()
916 ev->surface->desired_protection > output_base->current_protection) { in drm_output_propose_state()
918 "(enforced protection mode on unsecured output)\n", ev); in drm_output_propose_state()
925 ps = drm_output_prepare_plane_view(state, ev, mode, in drm_output_propose_state()
947 if (!weston_view_is_opaque(ev, &clipped_view)) in drm_output_propose_state()
950 &ev->transform.opaque); in drm_output_propose_state()
969 ev); in drm_output_propose_state()
978 if (!weston_view_is_opaque(ev, &clipped_view)) in drm_output_propose_state()
981 &ev->transform.opaque); in drm_output_propose_state()
990 "on the renderer\n", ev); in drm_output_propose_state()
1040 struct weston_view *ev; in drm_assign_planes() local
1076 wl_list_for_each(ev, &output_base->compositor->view_list, link) { in drm_assign_planes()
1081 if (!(ev->output_mask & (1u << output->base.id))) in drm_assign_planes()
1093 (weston_view_has_valid_buffer(ev) && in drm_assign_planes()
1094 (!wl_shm_buffer_get(ev->surface->buffer_ref.buffer->resource) || in drm_assign_planes()
1095 (ev->surface->width <= b->cursor_width && in drm_assign_planes()
1096 ev->surface->height <= b->cursor_height)))) in drm_assign_planes()
1097 ev->surface->keep_buffer = true; in drm_assign_planes()
1099 ev->surface->keep_buffer = false; in drm_assign_planes()
1107 if (plane_state->ev == ev) { in drm_assign_planes()
1108 plane_state->ev = NULL; in drm_assign_planes()
1116 ev, plane_type_enums[target_plane->type].name, in drm_assign_planes()
1118 weston_view_move_to_plane(ev, &target_plane->base); in drm_assign_planes()
1121 "composition\n", ev); in drm_assign_planes()
1122 weston_view_move_to_plane(ev, primary); in drm_assign_planes()
1128 ev->psf_flags = 0; in drm_assign_planes()
1133 ev->psf_flags = WP_PRESENTATION_FEEDBACK_KIND_ZERO_COPY; in drm_assign_planes()