weston/tests
Neil Roberts 40c0c3f91e tests: Test whether a simple EGL main loop uses too many buffers
This adds a test that tries to simulate a simple game loop that would
be like this:

while (1) {
        draw_something();
        eglSwapBuffers();
}

In this case the test is relying on eglSwapBuffers to throttle to a
sensible frame rate.

The test then verifies that only 2 EGL buffers are used. This is done
via a new request and event in the wayland-test protocol.

Currently this causes 3 buffers to be created because the release
event generated by the swap buffers is not processed by Mesa until it
blocks for the frame complete event in the next swap buffers call, but
that is too late.

This can be fixed in Mesa by issuing a sync request after the swap
buffers and blocking on it before deciding whether to allocate a new
buffer.
2013-12-07 22:26:23 -08:00
..
.gitignore tests: .gitignore log files 2013-11-21 21:47:29 -08:00
bad-buffer-test.c tests: add a test causing SIGBUS to the compositor 2013-11-21 21:47:19 -08:00
buffer-count-test.c tests: Test whether a simple EGL main loop uses too many buffers 2013-12-07 22:26:23 -08:00
button-test.c tests: check wl_display_roundtrip() for errors 2012-12-12 10:39:01 -05:00
config-parser-test.c config-parser: Make weston_config_parse() tkae a file name 2013-09-21 23:05:45 -07:00
event-test.c tests: add test for buffer release event 2013-02-08 13:38:17 -05:00
keyboard-test.c tests: check wl_display_roundtrip() for errors 2012-12-12 10:39:01 -05:00
Makefile.am tests: Test whether a simple EGL main loop uses too many buffers 2013-12-07 22:26:23 -08:00
matrix-test.c Move matrix.[ch] to shared 2012-12-06 15:53:03 -05:00
setbacklight.c tests/setbacklight: Close filedescriptor on return paths 2013-01-10 16:07:08 -05:00
subsurface-test.c protocol: move sub-surfaces to Wayland 2013-11-15 16:23:17 -08:00
surface-global-test.c Remove the weston_view.geometry.width/height fields 2013-12-02 22:17:58 -08:00
surface-test.c Remove the weston_view.geometry.width/height fields 2013-12-02 22:17:58 -08:00
text-test.c text: Rename text_input to wl_text_input 2013-05-02 17:06:27 -04:00
vertex-clip-test.c Remove dependency on <GLES2/gl2.h> by replacing GLfloat with float 2013-11-27 22:49:31 -08:00
weston-test-client-helper.c tests: Test whether a simple EGL main loop uses too many buffers 2013-12-07 22:26:23 -08:00
weston-test-client-helper.h tests: Test whether a simple EGL main loop uses too many buffers 2013-12-07 22:26:23 -08:00
weston-test-runner.c Add support for table-driven testing. 2013-09-13 15:19:35 -07:00
weston-test-runner.h Add support for table-driven testing. 2013-09-13 15:19:35 -07:00
weston-test.c tests: Test whether a simple EGL main loop uses too many buffers 2013-12-07 22:26:23 -08:00
weston-tests-env tests: use variable for test name in weston-tests-env 2013-09-11 13:40:01 -07:00
xwayland-test.c tests: Add XWayland test 2013-02-08 12:18:05 -05:00