- 26 Jul, 2016 1 commit
-
-
Yong Bakos authored
Some headers and source files have been using types such as uint32_t without explicitly including stdint.h. Explicitly include stdint.h where appropriate. Signed-off-by:
Yong Bakos <ybakos@humanoriented.com> Reviewed-by:
Eric Engestrom <eric.engestrom@imgtec.com>
-
- 12 Jun, 2015 1 commit
-
-
Bryce Harrington authored
Signed-off-by:
Bryce Harrington <bryce@osg.samsung.com> Reviewed-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-
- 19 Aug, 2014 2 commits
-
-
Marek Chalupa authored
It may happen that there's some time between the first and the other timer expire. If epoll_wait is called after the first timer expired and the other not, it returns only one source to dispatch and therefore the test fails. To fix that, sleep a while before wl_event_loop_dispatch() to make sure both timers expired. To be 100% sure, we could use poll() before calling wl_event_loop_dispatch(), but that would need modification in libwayland (need to get the source's fd somehow) https://bugs.freedesktop.org/show_bug.cgi?id=80594Signed-off-by:
Marek Chalupa <mchqwerty@gmail.com> Reviewed-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-
Marek Chalupa authored
Make sure the wl_event_source_timer_update suceeded. Also, fix weird indentation. Signed-off-by:
Marek Chalupa <mchqwerty@gmail.com> Reviewed-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-
- 18 Aug, 2014 2 commits
-
-
Marek Chalupa authored
Test if when we get a signal, all signal sources for that signal get dispatched. Signed-off-by:
Marek Chalupa <mchqwerty@gmail.com> Reviewed-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-
Marek Chalupa authored
Check value set in handler against an explicit value instead of: assert(value); also add one assert() for non-NULL value. Reviewed-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-
- 09 May, 2014 1 commit
-
-
Jonas Ådahl authored
Signed-off-by:
Jonas Ådahl <jadahl@gmail.com>
-
- 25 Apr, 2014 1 commit
-
-
Andrew Wedgbury authored
I've noticed a blocking problem in Wayland's event-loop code when updating timer event sources. The problem occurs if you update the timer at a point after is has expired, but before it has been dispatched, i.e. from an event callback that happens during the same epoll wakeup. When the timer is subsequently dispatched, wl_event_source_timer_dispatch blocks for the duration of the new timeout in its call to read() from the timer fd (which is the expected behaviour according to the man page for timerfd_settime). This isn't too uncommon a scenario - for example, a socket with an associated timeout timer. You'd typically want to update the timer when reading from the socket. This is how I noticed the issue, since I was setting a timeout of 1 minute, and saw my server blocking for this duration! The following patch adds a (currently failing) test case to Wayland's event-loop-test.c. It demonstrates the problem using two timers, which are set to expire at the same time. The first timer to receive its expiry callback updates the other timer with a much larger timeout, which then causes the test to block for this timeout before calling the second timer's callback. As for a fix, I'm not so sure (which is why I thought I'd post the failing test case first to show what I mean). I notice that it doesn't actually do anything with the value read from the timerfd socket, which gives the number of times the timer expired since the last read, or when the timer was last updated (which blocks if the timer hasn't yet expired). I believe this value should always read as 1 anyway, since we don't use periodic timers. A simple fix would be to use the TFD_NONBLOCK option when creating the timerfd, ensuring that the read call won't block. We'd then have to ignore the case when the read returns EAGAIN.
-
- 15 Jan, 2014 1 commit
-
-
U. Artie Eoff authored
Signed-off-by:
U. Artie Eoff <ullysses.a.eoff@intel.com>
-
- 02 Jul, 2013 1 commit
-
-
Kristian Høgsberg authored
With the work to add wl_resource accessors and port weston to use them, we're ready to make wl_resource and wl_object opaque structs. We keep wl_buffer in the header for EGL stacks to use, but don't expose it by default. In time we'll remove it completely, but for now it provides a transition paths for code that still uses wl_buffer. Reviewed-by: Jason Ekstrand<jason@jlekstrand.net>
-
- 15 Jan, 2013 1 commit
-
-
Jason Ekstrand authored
-
- 11 Jan, 2013 1 commit
-
-
Quentin Glidic authored
When redirecting stdout to a non-readable file makes the test fail as a false negative
-
- 30 Jun, 2012 1 commit
-
-
Dylan Noblesmith authored
It was failing with missing include files. While here, destroy the ugly "../src/..." include paths used in the tests that was just hacking around this problem in the Makefile: sed -i s/..\\/src\\/// tests/*.c
-
- 08 May, 2012 4 commits
-
-
Kristian Høgsberg authored
-
Kristian Høgsberg authored
-
Kristian Høgsberg authored
-
Kristian Høgsberg authored
Doesn't necessarily catch the signalfd bug just fixed, since that only triggers when an uninitialized int is negative.
-
- 20 Apr, 2012 1 commit
-
-
Pekka Paalanen authored
Signed-off-by:
Pekka Paalanen <ppaalanen@gmail.com>
-
- 21 Mar, 2012 1 commit
-
-
Kristian Høgsberg authored
-
- 20 Mar, 2012 1 commit
-
-
Ander Conselvan de Oliveira authored
-
- 31 Aug, 2011 1 commit
-
-
Kristian Høgsberg authored
The visual interface was meant to be a generic mechanism for specifying the content of a buffer. It goes back to before we had the buffer factory interfaces (like wl_drm and wl_shm) and we wanted to keep it open-ended enough that yuv, png or even svg buffer or so would be possible. Now that we have the buffer abstraction, we can add different buffer types by introducing new interfaces that create buffers. It only makes sense to leave it to those interfaces to specify the contents of the buffers. For wl_shm, this means that we now just specify the pixel format using an enum. For EGL buffers, the exact pixel formats are controlled by the implementation (part of wl_drm and similar), and from the client point of view, everything is controlled using EGLConfigs.
-
- 12 Aug, 2011 1 commit
-
-
Kristian Høgsberg authored
-
- 18 Apr, 2011 1 commit
-
-
Kristian Høgsberg authored
-
- 09 Feb, 2011 1 commit
-
-
Kristian Høgsberg authored
This indicates that we're using the wayland egl platform and will make eglplatform.h typedef the native types correctly.
-
- 08 Feb, 2011 1 commit
-
-
Kristian Høgsberg authored
We don't need it in the mesa implementation, but other implementations might and it's symmetric with wl_egl_pixmap_create().
-
- 07 Feb, 2011 1 commit
-
-
Benjamin Franzke authored
This header defines native EGL wayland types and affiliated initialization, processing and destruction routines. EGL implementations must implement this API in order to allow applications using this native types for the EGL implementation.
-