weston/tests
Leandro Ribeiro be7d88fa13 tests: test GL-renderer support for creating straight alpha fb's
GL-renderer can produce straight alpha framebuffers on some platforms,
and headless-backend can request that using "output-straight-alpha"
config option.

In this patch we use that to add a sanity test for GL-renderer's
straight alpha implementation. Basically, it ensures that no matter if
renderer is producing straight or premult alpha framebuffers after
blending, the results should be the same when the background is opaque.

To extend the tests and exercise the DRM-backend implementation we'd
need more work on:

- VKMS, to emulate that it doesn't support alpha premultiplied fb's.
- Weston, adding support for using ConfigFS on the test suite.

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
2026-06-16 16:45:20 +03:00
..
harness shared: add weston_assert_enum_ne() 2026-06-16 16:45:20 +03:00
reference tests: add Display-P3 ICC profile 2026-06-10 14:11:27 +00: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: test GL-renderer support for creating straight alpha fb's 2026-06-16 16:45:20 +03:00
alpha-modifier-smoke-test.c tests: add alpha modifier tests 2026-06-08 16:59:34 +03:00
alpha-modifier-test.c tests: add alpha modifier tests 2026-06-08 16:59:34 +03:00
assert-test.c shared: add weston_assert_enum_ne() 2026-06-16 16:45:20 +03:00
bad-buffer-test.c tests/bad-buffer-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
buffer-transforms-test.c tests/buffer-transforms-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
client-buffer-test.c shared: rename weston_assert_enum() to weston_assert_enum_eq() 2026-06-16 16:45:20 +03:00
color-effects-test.c tests/color-effects-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
color-icc-output-test.c shared: rename weston_assert_enum() to weston_assert_enum_eq() 2026-06-16 16:45:20 +03:00
color-lcms-optimizer-test.c tests/color-lcms-optimizer-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
color-management-protocol-test.c shared: rename weston_assert_enum() to weston_assert_enum_eq() 2026-06-16 16:45:20 +03:00
color-math-test.c tests/color-math-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
color-output-parsing-test.c tests: color parameters to color_util.h 2026-06-10 14:11:27 +00:00
color-representation-common.c shared: rename weston_assert_enum() to weston_assert_enum_eq() 2026-06-16 16:45:20 +03:00
color-representation-common.h tests: color-representation: Use writeback screenshots for DRM tests 2026-03-24 15:25:30 +01:00
color-representation-drm-test.c tests/color-representation-drm-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
color-representation-protocol-test.c tests/color-representation-protocol-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
color-representation-renderer-test.c tests/color-representation-renderer-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
commit-timing-test.c tests: move surface_commit_color() to test client helper 2026-06-08 16:59:34 +03:00
config-parser-test.c tests/config-parser-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
constraints-test.c tests/constraints-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
custom-env-test.c tests/custom-env-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
devices-test.c shared: rename weston_assert_enum() to weston_assert_enum_eq() 2026-06-16 16:45:20 +03:00
dmabuf-screenshot-test.c tests: move surface_commit_color() to test client helper 2026-06-08 16:59:34 +03:00
drm-formats-test.c tests/drm-formats-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
drm-offload-test.c shared: rename weston_assert_enum() to weston_assert_enum_eq() 2026-06-16 16:45:20 +03:00
drm-smoke-test.c tests/drm-smoke-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
drm-writeback-screenshot-test.c tests/drm-writeback-screenshot-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
event-test.c tests/event-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
fifo-test.c shared: rename weston_assert_enum() to weston_assert_enum_eq() 2026-06-16 16:45:20 +03:00
idalloc-test.c tests/idalloc-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
image-description-query-test.c shared: rename weston_assert_enum() to weston_assert_enum_eq() 2026-06-16 16:45:20 +03: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/internal-screenshot-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
iterate-debug-scopes-test.c tests/iterate-debug-scopes-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
ivi-layout-internal-test.c tests/ivi-layout-internal-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
ivi-layout-test-client.c tests/ivi-layout-test-client: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
ivi-layout-test-plugin.c tests/ivi-layout-test-client: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
ivi-shell-app-test.c tests/ivi-shell-app-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +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/keyboard-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
kiosk-shell-test.c shared: rename weston_assert_enum() to weston_assert_enum_eq() 2026-06-16 16:45:20 +03:00
lcms-util-test.c tests/lcms-util-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
linalg-test.c tests: new test listing macros 2026-05-28 16:29:56 +03:00
linux-explicit-synchronization-test.c tests/linux-explicit-synchronization-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
lua-shell-test.c shared: rename weston_assert_enum() to weston_assert_enum_eq() 2026-06-16 16:45:20 +03:00
matrix-test.c tests/matrix-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
matrix-transform-test.c shared: rename weston_assert_enum() to weston_assert_enum_eq() 2026-06-16 16:45:20 +03:00
meson.build tests: add alpha modifier tests 2026-06-08 16:59:34 +03:00
output-capture-protocol-test.c shared: rename weston_assert_enum() to weston_assert_enum_eq() 2026-06-16 16:45:20 +03:00
output-damage-test.c tests/output-damage-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
output-decorations-test.c tests/output-decorations-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
output-transforms-test.c tests/output-transforms-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
paint-node-test.c shared: rename weston_assert_enum() to weston_assert_enum_eq() 2026-06-16 16:45:20 +03:00
plugin-registry-test.c tests/plugin-registry-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
pointer-shot-test.c tests: move surface_commit_color() to test client helper 2026-06-08 16:59:34 +03:00
pointer-test.c shared: rename weston_assert_enum() to weston_assert_enum_eq() 2026-06-16 16:45:20 +03:00
presentation-test.c shared: rename weston_assert_enum() to weston_assert_enum_eq() 2026-06-16 16:45:20 +03:00
roles-test.c tests/roles-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
safe-signal-output-removal-test.c tests/safe-signal-output-removal-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
safe-signal-test.c tests/safe-signal-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +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/single-pixel-buffer-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
string-test.c tests/string-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
subsurface-shot-test.c tests: move surface_commit_color() to test client helper 2026-06-08 16:59:34 +03:00
subsurface-test.c tests/subsurface-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
surface-global-test.c tests/surface-global-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
surface-screenshot-test.c tests: fix desc[] left-over 2026-03-12 17:47:47 +02:00
surface-test.c tests/surface-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
text-test.c tests/text-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
timespec-test.c tests/timespec-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
touch-test.c tests/touch-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
vertex-clip-test.c tests/vertex-clip-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
viewporter-shot-test.c tests/viewporter-shot-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
viewporter-test.c tests/viewporter-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
xdg-shell-test.c tests/xdg-shell-test: migrate to DECLARE_TEST_LIST API 2026-05-28 16:29:56 +03:00
xwayland-test.c shared: rename weston_assert_enum() to weston_assert_enum_eq() 2026-06-16 16:45:20 +03:00