xserver-multidpi/hw
Kenneth Graunke f6853baeba modesetting: Improve the ms_flush_drm_events() API.
Previously, ms_flush_drm_events() returned a boolean value, and it was
very easy to interpret the meaning incorrectly.  Now, we return an
integer value.

The possible outcomes of this call are:
- poll() raised an error (formerly TRUE, now -1 - poll's return value)
- poll() said there are no events (formerly TRUE, now 0).
- drmHandleEvent() raised an error (formerly FALSE, now the negative
  value returned by drmHandleEvent).
- An event was successfully handled (formerly TRUE, now 1).

The nice part is that this allows you to distinguish errors (< 0),
nothing to do (= 0), and success (1).  We no longer conflate errors
with success.

v2: Change ms_present_queue_vblank to < 0 instead of <= 0, fixing an
    unintentional behavior change.  libdrm may return EBUSY if it's
    received EINTR for more than a second straight; just keep retrying
    in that case.  Suggested by Jasper St. Pierre.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
2015-06-30 13:44:09 +10:00
..
dmx Convert hw/dmx to new *allocarray functions 2015-04-21 16:58:08 -07:00
kdrive cursor: drop ARGB_CURSOR 2015-06-30 12:17:51 +10:00
vfb Convert hw/xnest & hw/vfb to new *allocarray functions 2015-04-21 16:58:08 -07:00
xfree86 modesetting: Improve the ms_flush_drm_events() API. 2015-06-30 13:44:09 +10:00
xnest Merge remote-tracking branch 'jturney/mingw-build-fixes' 2015-05-11 15:36:53 -07:00
xquartz cursor: drop ARGB_CURSOR 2015-06-30 12:17:51 +10:00
xwayland glamor: add support for allocating linear buffers (v2) 2015-06-30 12:17:55 +10:00
xwin hw/xwin/winclipboard: Link xwinclip with -lpthread 2015-04-22 12:55:25 +01:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00