diff options
author | Kristian Høgsberg <[email protected]> | 2008-10-11 20:41:14 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2008-10-14 23:07:55 -0400 |
commit | 4830809524b20e517e949151957512b14d7e679a (patch) | |
tree | 99c072c72142ef6fea65a36dca998f8922164d7e /src/glx/x11/dri2.h | |
parent | 77c7f90ed44748f0e54e894deff1cac63da54cd6 (diff) |
Update DRI2 implementation according to new specification.
Diffstat (limited to 'src/glx/x11/dri2.h')
-rw-r--r-- | src/glx/x11/dri2.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/glx/x11/dri2.h b/src/glx/x11/dri2.h index 25212f99e5c..c1bfa664bb8 100644 --- a/src/glx/x11/dri2.h +++ b/src/glx/x11/dri2.h @@ -34,6 +34,9 @@ #ifndef _DRI2_H_ #define _DRI2_H_ +#include <X11/extensions/Xfixes.h> +#include <X11/extensions/dri2tokens.h> + typedef struct { unsigned int attachment; unsigned int name; @@ -47,10 +50,10 @@ DRI2QueryExtension(Display *display, int *eventBase, int *errorBase); extern Bool DRI2QueryVersion(Display *display, int *major, int *minor); extern Bool -DRI2Connect(Display *display, int screen, - char **driverName, char **busId, unsigned int *sareaHandle); +DRI2Connect(Display *display, XID window, + char **driverName, char **deviceName); extern Bool -DRI2AuthConnection(Display *display, int screen, drm_magic_t magic); +DRI2Authenticate(Display *display, XID window, drm_magic_t magic); extern void DRI2CreateDrawable(Display *display, XID drawable); extern void @@ -60,8 +63,9 @@ DRI2GetBuffers(Display *dpy, XID drawable, int *width, int *height, unsigned int *attachments, int count, int *outCount); + extern void -DRI2SwapBuffers(Display *dpy, XID drawable, - int x, int y, int width, int height); +DRI2CopyRegion(Display *dpy, XID drawable, XserverRegion region, + CARD32 dest, CARD32 src); #endif |