summaryrefslogtreecommitdiff
path: root/tests/buffer-count-test.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove redundant #include path component.Jon Cruz2015-06-151-1/+1
| | | | | | | | | Using the parent '../' path component in #include statements makes the codebase more rigid and is redundant due to proper -I use. Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* tests: Update boilerplate from MIT X11 license to MIT Expat licenseBryce Harrington2015-06-151-16/+19
|
* tests: rename client_create to create_client_and_test_surfacePekka Paalanen2015-04-021-1/+1
| | | | | | | | | A more descriptive name to not be confused with create_client(). v2: Rebased: fix also devices-test.c. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Marek Chalupa <mchqwerty@gmail.com>
* platform: rename create_egl_window to create_egl_surfaceJonny Lamb2015-03-261-3/+3
| | | | Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* clients & tests: use eglCreatePlatformWindowSurfaceEXT when supportedJonny Lamb2015-03-201-4/+3
| | | | | Reviewed-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* clients & tests: use eglGetPlatformDisplayEXT when supportedJonny Lamb2015-03-201-3/+6
| | | | | Reviewed-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* tests: Skip buffer count test if wl_drm isn't presentDerek Foreman2015-01-231-0/+3
| | | | | | | | This skips the test when running on the headless backend. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com> (Presumably) Reviewed-by: Daniel Stone <daniel@fooishbar.org>
* tests: Cleanup superfluous headersBryce Harrington2014-11-281-5/+2
| | | | | | | | | Mostly remove headers that aren't actually needed for anything. Add stdint.h to permit dropping xf86drm.h, which is otherwise unneeded. Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Acked-by: Marek Chalupa <mchqwerty@gmail.com> Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* Make sure config.h is included before any system headersAndrew Wedgbury2014-04-071-0/+2
| | | | | | | | | | | | | | | There was an issue recently in screen-share.c where config.h was not being included, resulting in the wrong definition for off_t being used on 32 bit systems. I checked and I don't think this problem is happening elsewhere, but to help avoid this sort of problem in the future, I went through and made sure that config.h is included first whenever system headers are included. The config.h header should be included before any system headers, failing to do this can result in the wrong type sizes being defined on certain systems, e.g. off_t from sys/types.h Signed-off-by: Andrew Wedgbury <andrew.wedgbury@realvnc.com>
* tests: Skip buffer-count if EGL initialization failsEmilio Pozuelo Monfort2014-02-181-10/+19
| | | | | | | | That is the case when using the headless backend. In the future we may be able to use the mesa null egl platform but for now let's just skip it. Signed-off-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
* tests: Only run buffer-count test on Mesa >= 10.1Pekka Paalanen2014-01-081-2/+2
| | | | | | | | | | | | | Comment #2 in the bug report says Mesa 10.0 branch does not have the fix, and indeed buffer-count test fails on Mesa 10.0.1. Fix the test to require Mesa 10.1 or later. Now I correctly get: mesa version too old (OpenGL ES 3.0 Mesa 10.0.1 (git-12484d2)) https://bugs.freedesktop.org/show_bug.cgi?id=72835 Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* tests: Only run buffer-count test if we have at least mesa 10Kristian Høgsberg2014-01-011-0/+13
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=72835
* tests: Test whether a simple EGL main loop uses too many buffersNeil Roberts2013-12-071-0/+128
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.