xserver/present
Mario Kleiner 77ef968c86 present: Avoid crashes in DebugPresent(), a bit more info.
DebugPresent() crashed the server when a dri3 drawable
was closed while a pageflipped present was still pending,
due to vblank->window-> Null-Ptr deref, so debug builds
caused new problems to debug.

E.g.,

glXSwapBuffers(...);
glXDestroyWindow(...);
-> Pageflip for non-existent window completes -> boom.

Also often happens when switching desktop compositor on/off
due to Present unflips, or when logging out of session.

Also add info if a Present is queued for copyswap or pageflip,
if the present is vsynced, and the serial no of the Present
request, to aid debugging of pageflip and vsync issues. The
serial number is useful as Mesa's dri3/present backend encodes
its sendSBC in the serial number, so one can easily correlate
server debug output with Mesa and with the SBC values returned
to actual OpenGL client applications via OML_sync_control and
INTEL_swap_events extension, makes debugging quite a bit more
easy.

Please also cherry-pick this for a 1.16.x stable update.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit 32d3100bd7)
Signed-off-by: Julien Cristau <jcristau@debian.org>
2014-12-09 17:42:02 +01:00
..
Makefile.am present: Add Present extension 2013-10-31 16:59:18 -07:00
present.c present: Avoid crashes in DebugPresent(), a bit more info. 2014-12-09 17:42:02 +01:00
present.h present: Send GLX_BufferSwapComplete events from present extension 2013-12-05 09:51:00 -08:00
present_event.c glx/present: Only send GLX_BufferSwapComplete for PresentCompleteKindPixmap 2014-09-15 06:48:55 +02:00
present_fake.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
present_fence.c present: Block for wait_fence in present_execute 2013-11-20 13:12:30 -08:00
present_notify.c present: Add Present extension 2013-10-31 16:59:18 -07:00
present_priv.h present: Queue flips for later execution 2014-06-04 22:03:35 -07:00
present_request.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
present_screen.c present: Disable when Xinerama is active 2013-12-09 13:20:36 -05:00
presentext.h present: Add Present extension 2013-10-31 16:59:18 -07:00