xserver-multidpi/hw
Jamey Sharp 138bf5ac97 DRI2SwapBuffers: Fix uninitialized target SBC.
Fixes Piglit test "swapbuffersmsc-return swap_interval 0".

Ensure that *swap_target gets initialized on any 'return Success' path,
even if the swap request can't be completed by the driver and the server
falls back to a simple blit. That path can also be triggered by setting
swap_interval to 0, which disables sync to vertical retrace.

We originally found this bug because for some reason SDL2 automatically
sets swap_interval to 0, when we were trying to test OML_sync_control in
an SDL2 test application. We then discovered that the above-mentioned
Piglit test has been failing for the same reason since it was
introduced.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Signed-off-by: Theo Hill <Theo0x48@gmail.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
2014-04-21 11:24:32 -07:00
..
dmx Build fbcmap_mi.c once, rather than once for each DDX 2014-03-27 14:34:06 +00:00
kdrive kdrive: Ignore failure to chown console tty to current user 2014-04-18 16:30:17 -07:00
vfb Build fbcmap_mi.c once, rather than once for each DDX 2014-03-27 14:34:06 +00:00
xfree86 DRI2SwapBuffers: Fix uninitialized target SBC. 2014-04-21 11:24:32 -07:00
xnest Build fbcmap_mi.c once, rather than once for each DDX 2014-03-27 14:34:06 +00:00
xquartz XQuartz: Ensure we wait for the server thread to terminate 2014-04-06 05:32:03 -07:00
xwayland Xwayland DDX 2014-04-03 15:19:22 -07:00
xwin Build fbcmap_mi.c once, rather than once for each DDX 2014-03-27 14:34:06 +00:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00