#include "glxclient.h" /* for GLXDrawable */
/* temporary */
/* typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator); */
-#include "xf86dri.h" /* for XF86DRIClipRectPtr */
+#include "drm.h" /* for drm_clip_rect_t */
#include "sarea.h" /* for XF86DRISAREAPtr */
#include "GL/internal/glcore.h" /* for __GLcontextModes */
typedef Bool (GetDrawableInfo)( Display *dpy, int scrn, Drawable draw,
unsigned int * index, unsigned int * stamp,
int * x, int * y, int * width, int * height,
- int * numClipRects, XF86DRIClipRectPtr * pClipRects,
+ int * numClipRects, drm_clip_rect_t * pClipRects,
int * backX, int * backY,
- int * numBackClipRects, XF86DRIClipRectPtr * pBackClipRects );
+ int * numBackClipRects, drm_clip_rect_t * pBackClipRects );
/**
int w;
int h;
int numClipRects;
- XF86DRIClipRectPtr pClipRects;
+ drm_clip_rect_t *pClipRects;
/*@}*/
/**
int backY;
int backClipRectType;
int numBackClipRects;
- XF86DRIClipRectPtr pBackClipRects;
+ drm_clip_rect_t *pBackClipRects;
/*@}*/
/**
#define _XF86DRI_H_
#include <X11/Xfuncproto.h>
+#include "drm.h"
#include <xf86drm.h>
#define X_XF86DRIQueryVersion 0
#define XF86DRIOperationNotSupported 1
#define XF86DRINumberErrors (XF86DRIOperationNotSupported + 1)
-/* Warning : Do not change XF86DRIClipRect without changing the kernel
- * structure! */
-typedef struct _XF86DRIClipRect {
- unsigned short x1; /* Upper left: inclusive */
- unsigned short y1;
- unsigned short x2; /* Lower right: exclusive */
- unsigned short y2;
-} XF86DRIClipRectRec, *XF86DRIClipRectPtr;
-
#ifndef _XF86DRI_SERVER_
_XFUNCPROTOBEGIN
int* /* W */,
int* /* H */,
int* /* numClipRects */,
- XF86DRIClipRectPtr*,/* pClipRects */
+ drm_clip_rect_t*, /* pClipRects */
int* /* backX */,
int* /* backY */,
int* /* numBackClipRects */,
- XF86DRIClipRectPtr* /* pBackClipRects */
+ drm_clip_rect_t* /* pBackClipRects */
#endif
);