weston/tests
Derek Foreman e4be014f93 compositor: Add an explicit latch point
Latch is the moment when the compositor considers updates for an upcoming
redraw. Nothing that takes place after an output latches for repaint can
change what will be repainted.

This needs a more explicit treatment now that upcoming transactional
protocols require things to happen immediately after the latch (ie:
when it's too late to change the upcoming render).

Add an explicit latch point, a signal to tap for testing, and some asserts
to make sure nothing can violate the inevitability of the current render
state.

Note that currently latch is tied to repaint such that we only claim to
have latched when a repaint will happen. In a future commit this will lead
to forcing the repaint loop to fire without damage when the fifo protocol
needs something to happen after a latch. This could be an area for
future improvement.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
2025-12-04 12:38:17 -06:00
..
reference tests: Add a semi-transparent single pixel buffer test 2025-10-21 13:53:34 -05:00
visualization tests/alpha-blending: replace compare_float() with rgb_diff_stat 2022-06-30 09:08:32 +00:00
alpha-blending-test.c tests: Add helper to create solid-filled buffer 2025-10-16 11:36:33 +03:00
assert-test.c shared: add many weston assert that were missing 2025-09-15 19:14:00 -03:00
bad-buffer-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
buffer-transforms-test.c tests: Support decoration capture for screenshots 2025-10-16 11:36:33 +03:00
client-buffer-test.c tests: Support decoration capture for screenshots 2025-10-16 11:36:33 +03:00
color-effects-test.c tests: Support decoration capture for screenshots 2025-10-16 11:36:33 +03:00
color-icc-output-test.c tests: Add helper to create solid-filled buffer 2025-10-16 11:36:33 +03:00
color-lcms-optimizer-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
color-management-parametric-test.c tests: bail on dispatch failure 2025-12-04 18:20:27 +02:00
color-management-test.c tests: bail on dispatch failure 2025-12-04 18:20:27 +02:00
color-math-test.c color: add Bradford matrix computation 2025-07-28 13:14:01 +03:00
color-metadata-errors-test.c tests: add parametric_color_profile_parsing_errors 2025-10-09 16:17:57 +00:00
color-metadata-parsing-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
color-output-parsing-test.c tests: add color-output-parsing 2025-10-09 16:17:57 +00:00
color_util.c color-lcms: change stock sRGB to true power-2.2 2025-06-03 15:47:20 +03:00
color_util.h tests/color_util: add power-2.2 transfer function 2025-06-03 15:47:20 +03:00
config-parser-test.c shared: implement weston_parse_space_separated_list() 2025-10-07 17:23:35 +03:00
constraints-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
custom-env-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
devices-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
drm-formats-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
drm-offload-test.c backend-drm: Allow plane-less DRM background for opaque black solid buffers 2025-10-23 12:40:37 +02:00
drm-smoke-test.c tests: Add helper to create solid-filled buffer 2025-10-16 11:36:33 +03:00
drm-writeback-screenshot-test.c tests: Fix screenshot assert 2025-10-16 11:36:33 +03:00
event-test.c tests: Add helper to create solid-filled buffer 2025-10-16 11:36:33 +03:00
idalloc-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
image-iter.h tests: Port all test clients to the new test asserts 2025-02-26 23:50:41 +01:00
input-timestamps-helper.c tests: Address compilation warns/error on arm32 (format) 2025-12-02 18:27:12 +02:00
input-timestamps-helper.h tests: Introduce input timestamps helper 2018-02-20 10:20:29 +02:00
internal-screenshot-test.c tests: Support decoration capture for screenshots 2025-10-16 11:36:33 +03:00
iterate-debug-scopes-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
ivi-layout-internal-test.c tests: Set optimal refresh rate for tests 2025-10-16 11:36:33 +03:00
ivi-layout-test-client.c tests: Add helper to create solid-filled buffer 2025-10-16 11:36:33 +03:00
ivi-layout-test-plugin.c Revert "shared/helpers.h: Migrate helpers.h to libweston" 2025-01-17 10:18:26 +02:00
ivi-shell-app-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
ivi-test.h ivi-shell: implement surface_on_many_layer test 2016-06-29 11:32:23 +03:00
keyboard-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
kiosk-shell-test.c weston-test-client-helper: Move helpers into weston-test-client-helper 2025-05-06 15:27:58 +03:00
lcms-util-test.c tests: drop EOTF from TRANSFER_FN_SRGB_EOTF 2025-06-03 15:47:20 +03:00
lcms_util.c color-lcms: change stock sRGB to true power-2.2 2025-06-03 15:47:20 +03:00
lcms_util.h tests: replace lcmsMAT3 with weston_mat3f 2025-04-01 15:59:54 +03:00
linalg-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
linux-explicit-synchronization-test.c tests: Add helper to create solid-filled buffer 2025-10-16 11:36:33 +03:00
lua-shell-test.c lua-shell: Add lua-shell 2025-06-04 15:47:06 +03:00
matrix-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
matrix-transform-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
meson.build tests: Add drm offloading test 2025-10-10 12:53:44 +02:00
output-capture-protocol-test.c tests: bail on dispatch failure 2025-12-04 18:20:27 +02:00
output-damage-test.c tests: Add helper to create solid-filled buffer 2025-10-16 11:36:33 +03:00
output-decorations-test.c tests: Support decoration capture for screenshots 2025-10-16 11:36:33 +03:00
output-transforms-test.c tests: Support decoration capture for screenshots 2025-10-16 11:36:33 +03:00
paint-node-test.c output: Record paint_node_changes during repaint 2025-10-17 13:51:05 -05:00
plugin-registry-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
pointer-shot-test.c tests: Add helper to create solid-filled buffer 2025-10-16 11:36:33 +03:00
pointer-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
presentation-test.c tests: bail on dispatch failure 2025-12-04 18:20:27 +02:00
roles-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
safe-signal-output-removal-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
safe-signal-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
setbacklight.c tests: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:19 -07:00
single-pixel-buffer-test.c tests: Add a semi-transparent single pixel buffer test 2025-10-21 13:53:34 -05:00
string-test.c shared: add safe_strtofloat() 2025-10-09 16:17:57 +00:00
subsurface-shot-test.c tests: Add helper to create solid-filled buffer 2025-10-16 11:36:33 +03:00
subsurface-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
surface-global-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
surface-screenshot-test.c Rename compositor/ to frontend/ 2023-12-18 15:34:26 +00:00
surface-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
text-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
timespec-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
touch-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
vertex-clip-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
viewporter-shot-test.c tests: Add helper to create solid-filled buffer 2025-10-16 11:36:33 +03:00
viewporter-test.c tests: return status from each test definition 2025-04-30 15:07:35 +03:00
weston-test-assert.h tests: add color-output-parsing 2025-10-09 16:17:57 +00:00
weston-test-client-helper.c tests: break out on client_capture_output() error 2025-11-06 16:02:37 +02:00
weston-test-client-helper.h tests: Add helper to create solid-filled buffer 2025-10-16 11:36:33 +03:00
weston-test-desktop-shell.c compositor/shells: Require shells to flag outputs as ready to allow repaint 2025-10-27 05:55:51 +00:00
weston-test-fixture-compositor.c lua-shell: Add lua-shell 2025-06-04 15:47:06 +03:00
weston-test-fixture-compositor.h tests: Document default refresh-rate value 2025-10-16 11:36:33 +03:00
weston-test-runner.c ci: Bump kernel and Mesa version 2025-09-26 14:12:04 +02:00
weston-test-runner.h tests: return status from each test definition 2025-04-30 15:07:35 +03:00
weston-test.c compositor: Add an explicit latch point 2025-12-04 12:38:17 -06:00
weston-testsuite-data.h tests: Don't abort on failure 2025-02-26 23:50:45 +01:00
xcb-client-helper.c tests: Port all test clients to the new test asserts 2025-02-26 23:50:41 +01:00
xcb-client-helper.h tests: Port all test clients to the new test asserts 2025-02-26 23:50:41 +01:00
xdg-client-helper.c tests: Add helper to create solid-filled buffer 2025-10-16 11:36:33 +03:00
xdg-client-helper.h tests: xdg-client-helper: Add maybe_ack_configure() helper 2025-10-10 11:47:08 +02:00
xwayland-test.c tests: Set optimal refresh rate for tests 2025-10-16 11:36:33 +03:00