compositor: Store output_to_buffer transform in paint node

We already store the buffer_to_output, and this is just the inverse.

The pixman renderer will use the inverted version.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2023-01-11 13:57:05 -06:00
parent 898c40752e
commit 0dba133151
2 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,7 @@ paint_node_update(struct weston_paint_node *pnode)
struct weston_matrix *mat = &pnode->buffer_to_output_matrix;
weston_view_buffer_to_output_matrix(pnode->view, pnode->output, mat);
weston_matrix_invert(&pnode->output_to_buffer_matrix, mat);
pnode->needs_filtering = weston_matrix_needs_filtering(mat);
}

View File

@ -475,6 +475,7 @@ struct weston_paint_node {
/* Mutable members: */
struct weston_matrix buffer_to_output_matrix;
struct weston_matrix output_to_buffer_matrix;
bool needs_filtering;
/* struct weston_output::paint_node_z_order_list */