mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-01-06 17:50:21 +01:00
drm: Pass paint node to drm_view_transform_supported
Rename it as well. By passing the paint node we'll have access to the cached buffer to output matrix later. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
parent
2a1a8994c4
commit
05eee6eaef
3 changed files with 4 additions and 3 deletions
|
|
@ -663,8 +663,9 @@ struct drm_head *
|
|||
drm_head_find_by_connector(struct drm_backend *backend, uint32_t connector_id);
|
||||
|
||||
static inline bool
|
||||
drm_view_transform_supported(struct weston_view *ev, struct weston_output *output)
|
||||
drm_paint_node_transform_supported(struct weston_paint_node *node, struct weston_output *output)
|
||||
{
|
||||
struct weston_view *ev = node->view;
|
||||
struct weston_matrix transform;
|
||||
enum wl_output_transform wt;
|
||||
|
||||
|
|
|
|||
|
|
@ -546,7 +546,7 @@ drm_fb_get_from_paint_node(struct drm_output_state *state,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (!drm_view_transform_supported(ev, &output->base)) {
|
||||
if (!drm_paint_node_transform_supported(pnode, &output->base)) {
|
||||
pnode->try_view_on_plane_failure_reasons |=
|
||||
FAILURE_REASONS_INCOMPATIBLE_TRANSFORM;
|
||||
return NULL;
|
||||
|
|
|
|||
|
|
@ -215,7 +215,7 @@ drm_plane_state_coords_for_paint_node(struct drm_plane_state *state,
|
|||
pixman_box32_t *box;
|
||||
float sxf1, syf1, sxf2, syf2;
|
||||
|
||||
if (!drm_view_transform_supported(ev, &output->base))
|
||||
if (!drm_paint_node_transform_supported(node, &output->base))
|
||||
return false;
|
||||
|
||||
/* Update the base weston_plane co-ordinates. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue