libweston: Add more asserts for dirty transform

A couple of additional assert()s for transforms being dirty in places
where it could lead to unexpected results.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2022-11-17 15:36:23 -06:00
parent d347e37be4
commit 0108f979d1

View File

@ -1759,6 +1759,8 @@ weston_view_matches_output_entirely(struct weston_view *ev,
pixman_box32_t *extents =
pixman_region32_extents(&ev->transform.boundingbox);
assert(!ev->transform.dirty);
if (extents->x1 != output->x ||
extents->y1 != output->y ||
extents->x2 != output->x + output->width ||
@ -2637,6 +2639,8 @@ view_accumulate_damage(struct weston_view *view,
{
pixman_region32_t damage;
assert(!view->transform.dirty);
pixman_region32_init(&damage);
if (view->transform.enabled) {
pixman_box32_t *extents;