Commits on Source (6)
-
Derek Foreman authored
If a transformation matrix causes a scale, a rotation not a multiple of 90 degrees or a non-integral translation then textures rendered with it would benefit from bilinear filtering. This test is done in a lazy fashion by examining elements of the matrix to check for a simple pattern that indicates these conditions are met. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
0e2136df -
Derek Foreman authored
When we build up a matrix from a series of operations, it's very useful to know if the combined operations still result in something that matches a wl_output_transform. This adds a function to test if a matrix leads to a standard output transform, and returns the transform if it does. Tests are provided that check if complex series of operations return expected results - the weston_matrix_needs_filtering function is tested at the same time. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
92a9860e -
Derek Foreman authored
This can be helpful in testing if a paint node needs linear vs nearest neighbour filtering, or if a view can be placed on a plane. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
d14753e8 -
Derek Foreman authored
Instead of bailing based on our loosely tracked matrix "type" (that won't recognize when an operation is reversed by its inverse) use the new weston_matrix_to_transform to determine if the matrix reasonably matches. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
021fdf42 -
Derek Foreman authored
Instead of basing this on simple checks, we can test the matrix. This should result in more opportunistically picking fast nearest neighbour filtering when it won't result in visible distortion. For now we only use this in the gl renderer, as paint nodes aren't plumbed into the pixman renderer yet. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
fb20fe9b -
Derek Foreman authored
Add tests to validate that weston_matrix_to_transform() works properly on the matrices generated by weston_surface_build_buffer_matrix() and weston_output_update_matrix() Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
2952ea63
tests/matrix-transform-test.c
0 → 100644