xserver/hw
Peter Hutterer 421f5dfdd8 DRI2: Don't return junk reply instead of blocking in glXWaitForSbcOML()
DRI2WaitSBC() didn't block if requested targetSBC wasn't yet reached.

Instead it returned a xreply with uninitialized junk return values, then
blocked the connection until targetSBC was reached.

Therefore the client didn't block, but continued with bogus return
values from glXWaitForSbcOML.

This patch fixes the problem by implementing DRI2WaitSBC similar
to the clean and proven DRI2WaitMSC implementation.

Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit b3548612c7)

Conflicts:

	hw/xfree86/dri2/dri2ext.c
2010-06-11 11:09:46 +10:00
..
dmx dmxBERestoreRenderGlyph was passing wrong value to free 2010-05-18 14:43:00 +10:00
kdrive kdrive: Bump evdev maxKeycode 2010-03-24 14:03:51 +01:00
vfb Xvfb: Usage message typo fix. 2010-04-23 13:42:34 +10:00
xfree86 DRI2: Don't return junk reply instead of blocking in glXWaitForSbcOML() 2010-06-11 11:09:46 +10:00
xnest xnest: Don't ignore errors from DeviceCursorInitialize. 2010-06-11 10:40:54 +10:00
xquartz XQuartz: Fix a build failure on Tiger 2010-05-17 09:12:34 -07:00
xwin Cygwin/X: Make X -> XWin symlink during install 2010-03-22 00:48:33 -05:00
Makefile.am Catch errors in recursive relink targets 2010-03-22 00:45:57 -05:00