diff options
author | Jesse Barnes <[email protected]> | 2009-11-12 16:48:07 +0000 |
---|---|---|
committer | Jesse Barnes <[email protected]> | 2010-01-08 12:37:43 -0500 |
commit | 7f170573ea486f2f2dd474c2590346f1a0110773 (patch) | |
tree | 7fdda10cc6a9aef6bfa2d8d9e7ea5597d357e454 /include/GL/glx.h | |
parent | efc82e7c703f9160cfdbe6d97e166ca6f5e75d86 (diff) |
DRI2/GLX: add INTEL_swap_event support
Add event support for the GLX swap buffers event, along with DRI2 protocol
support for generating GLX swap buffers events in the direct rendered case.
Signed-off-by: Jesse Barnes <[email protected]>
Diffstat (limited to 'include/GL/glx.h')
-rw-r--r-- | include/GL/glx.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/GL/glx.h b/include/GL/glx.h index 28844014069..82b0f221146 100644 --- a/include/GL/glx.h +++ b/include/GL/glx.h @@ -186,6 +186,16 @@ typedef XID GLXWindow; typedef XID GLXPbuffer; +/* +** Events. +** __GLX_NUMBER_EVENTS is set to 17 to account for the BufferClobberSGIX +** event - this helps initialization if the server supports the pbuffer +** extension and the client doesn't. +*/ +#define GLX_PbufferClobber 0 +#define GLX_BufferSwapComplete 1 + +#define __GLX_NUMBER_EVENTS 17 extern XVisualInfo* glXChooseVisual( Display *dpy, int screen, int *attribList ); @@ -507,8 +517,17 @@ typedef struct { int count; /* if nonzero, at least this many more */ } GLXPbufferClobberEvent; +typedef struct { + int event_type; + GLXDrawable drawable; + int64_t ust; + int64_t msc; + int64_t sbc; +} GLXBufferSwapComplete; + typedef union __GLXEvent { GLXPbufferClobberEvent glxpbufferclobber; + GLXBufferSwapComplete glxbufferswapcomplete; long pad[24]; } GLXEvent; |