compositor: simplify the matrix inversion API
The compositor will likely do an order of magnitude less matrix
inversions than point transformations with an inverse, hence we do not
really need the optimised path for single-shot invert-and-transform.
Expose only the computing of the explicit inverse matrix in the API.
However, the matrix inversion tests need access to the internal
functions. Designate a unit test build by #defining UNIT_TEST, and
export the internal functions in that case.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
diff --git a/src/compositor.h b/src/compositor.h
index 2064d67..5312665 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -230,7 +230,7 @@
/* derived state, set up by weston_surface_update_transform */
struct weston_matrix matrix;
- struct weston_inverse_matrix inverse;
+ struct weston_matrix inverse;
int enabled;
} transform;