GLX/DRI2: handle swap event swap count wrapping
authorJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 6 May 2011 17:31:24 +0000 (10:31 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 8 Jul 2011 19:38:20 +0000 (12:38 -0700)
commit4df137691ee29bb812347fa2c5f19095243ede22
treed8785b7099a772d4993b3855e65173d0b090868d
parent1e39fc784bc3d0d5ad01d9c147529ac0e10f1262
GLX/DRI2: handle swap event swap count wrapping

Create a new GLX drawable struct to track client related info, and add a
wrap counter to it drawable and track it as we receive events.  This
allows us to support the full 64 bits of the event structure we pass to
the client even though the server only gives us a 32 bit count.

Reviewed-by: Michel Dänzer <michel@daenzer.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
src/glx/dri2.c
src/glx/glx_pbuffer.c
src/glx/glxclient.h
src/glx/glxcmds.c
src/glx/glxext.c