Replace occurances of GLXDrawable and Drawable with __DRIid.
This commit is contained in:
@@ -44,7 +44,7 @@
|
|||||||
/*#define DRI_NEW_INTERFACE_ONLY*/
|
/*#define DRI_NEW_INTERFACE_ONLY*/
|
||||||
|
|
||||||
#ifndef GLX_OML_sync_control
|
#ifndef GLX_OML_sync_control
|
||||||
typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
|
typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display *dpy, __DRIid drawable, int32_t *numerator, int32_t *denominator);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -78,7 +78,7 @@ static int driQueryFrameTracking( Display * dpy, void * priv,
|
|||||||
float * usage );
|
float * usage );
|
||||||
|
|
||||||
static void *driCreateNewDrawable(Display *dpy, const __GLcontextModes *modes,
|
static void *driCreateNewDrawable(Display *dpy, const __GLcontextModes *modes,
|
||||||
GLXDrawable draw, __DRIdrawable *pdraw, int renderType, const int *attrs);
|
__DRIid draw, __DRIdrawable *pdraw, int renderType, const int *attrs);
|
||||||
|
|
||||||
static void driDestroyDrawable(Display *dpy, void *drawablePrivate);
|
static void driDestroyDrawable(Display *dpy, void *drawablePrivate);
|
||||||
|
|
||||||
@@ -194,7 +194,7 @@ static Bool __driAddDrawable(void *drawHash, __DRIdrawable *pdraw)
|
|||||||
return GL_TRUE;
|
return GL_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static __DRIdrawable *__driFindDrawable(void *drawHash, GLXDrawable draw)
|
static __DRIdrawable *__driFindDrawable(void *drawHash, __DRIid draw)
|
||||||
{
|
{
|
||||||
int retcode;
|
int retcode;
|
||||||
__DRIdrawable *pdraw;
|
__DRIdrawable *pdraw;
|
||||||
@@ -270,7 +270,7 @@ static Bool __driWindowExists(Display *dpy, GLXDrawable draw)
|
|||||||
*/
|
*/
|
||||||
static void __driGarbageCollectDrawables(void *drawHash)
|
static void __driGarbageCollectDrawables(void *drawHash)
|
||||||
{
|
{
|
||||||
GLXDrawable draw;
|
__DRIid draw;
|
||||||
__DRIdrawable *pdraw;
|
__DRIdrawable *pdraw;
|
||||||
Display *dpy;
|
Display *dpy;
|
||||||
|
|
||||||
@@ -317,7 +317,7 @@ static void __driGarbageCollectDrawables(void *drawHash)
|
|||||||
* into their respective real types it also assures they are not \c NULL.
|
* into their respective real types it also assures they are not \c NULL.
|
||||||
*/
|
*/
|
||||||
static Bool driUnbindContext3(Display *dpy, int scrn,
|
static Bool driUnbindContext3(Display *dpy, int scrn,
|
||||||
GLXDrawable draw, GLXDrawable read,
|
__DRIid draw, __DRIid read,
|
||||||
__DRIcontext *ctx)
|
__DRIcontext *ctx)
|
||||||
{
|
{
|
||||||
__DRIscreen *pDRIScreen;
|
__DRIscreen *pDRIScreen;
|
||||||
@@ -408,7 +408,7 @@ static Bool driUnbindContext3(Display *dpy, int scrn,
|
|||||||
* is added. Is it safe to assume that the drawable is a window?
|
* is added. Is it safe to assume that the drawable is a window?
|
||||||
*/
|
*/
|
||||||
static Bool DoBindContext(Display *dpy,
|
static Bool DoBindContext(Display *dpy,
|
||||||
GLXDrawable draw, GLXDrawable read,
|
__DRIid draw, __DRIid read,
|
||||||
__DRIcontext *ctx, const __GLcontextModes * modes,
|
__DRIcontext *ctx, const __GLcontextModes * modes,
|
||||||
__DRIscreenPrivate *psp)
|
__DRIscreenPrivate *psp)
|
||||||
{
|
{
|
||||||
@@ -419,7 +419,7 @@ static Bool DoBindContext(Display *dpy,
|
|||||||
__DRIcontextPrivate * const pcp = ctx->private;
|
__DRIcontextPrivate * const pcp = ctx->private;
|
||||||
|
|
||||||
|
|
||||||
/* Find the _DRIdrawable which corresponds to the writing GLXDrawable */
|
/* Find the _DRIdrawable which corresponds to the writing drawable. */
|
||||||
pdraw = __driFindDrawable(psp->drawHash, draw);
|
pdraw = __driFindDrawable(psp->drawHash, draw);
|
||||||
if (!pdraw) {
|
if (!pdraw) {
|
||||||
/* Allocate a new drawable */
|
/* Allocate a new drawable */
|
||||||
@@ -441,7 +441,7 @@ static Bool DoBindContext(Display *dpy,
|
|||||||
}
|
}
|
||||||
pdp = (__DRIdrawablePrivate *) pdraw->private;
|
pdp = (__DRIdrawablePrivate *) pdraw->private;
|
||||||
|
|
||||||
/* Find the _DRIdrawable which corresponds to the reading GLXDrawable */
|
/* Find the _DRIdrawable which corresponds to the reading drawable. */
|
||||||
if (read == draw) {
|
if (read == draw) {
|
||||||
/* read buffer == draw buffer */
|
/* read buffer == draw buffer */
|
||||||
prp = pdp;
|
prp = pdp;
|
||||||
@@ -499,7 +499,7 @@ static Bool DoBindContext(Display *dpy,
|
|||||||
* function.
|
* function.
|
||||||
*/
|
*/
|
||||||
static Bool driBindContext3(Display *dpy, int scrn,
|
static Bool driBindContext3(Display *dpy, int scrn,
|
||||||
GLXDrawable draw, GLXDrawable read,
|
__DRIid draw, __DRIid read,
|
||||||
__DRIcontext * ctx)
|
__DRIcontext * ctx)
|
||||||
{
|
{
|
||||||
__DRIscreen *pDRIScreen;
|
__DRIscreen *pDRIScreen;
|
||||||
@@ -773,7 +773,7 @@ static int64_t driSwapBuffersMSC( Display * dpy, void *drawablePriv,
|
|||||||
*/
|
*/
|
||||||
static void *driCreateNewDrawable(Display *dpy,
|
static void *driCreateNewDrawable(Display *dpy,
|
||||||
const __GLcontextModes *modes,
|
const __GLcontextModes *modes,
|
||||||
GLXDrawable draw,
|
__DRIid draw,
|
||||||
__DRIdrawable *pdraw,
|
__DRIdrawable *pdraw,
|
||||||
int renderType,
|
int renderType,
|
||||||
const int *attrs)
|
const int *attrs)
|
||||||
@@ -868,7 +868,7 @@ static void *driCreateNewDrawable(Display *dpy,
|
|||||||
return (void *) pdp;
|
return (void *) pdp;
|
||||||
}
|
}
|
||||||
|
|
||||||
static __DRIdrawable *driGetDrawable(Display *dpy, GLXDrawable draw,
|
static __DRIdrawable *driGetDrawable(Display *dpy, __DRIid draw,
|
||||||
void *screenPrivate)
|
void *screenPrivate)
|
||||||
{
|
{
|
||||||
__DRIscreenPrivate *psp = (__DRIscreenPrivate *) screenPrivate;
|
__DRIscreenPrivate *psp = (__DRIscreenPrivate *) screenPrivate;
|
||||||
|
@@ -254,7 +254,7 @@ struct __DRIswapInfoRec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
typedef Bool (GetDrawableInfo)( Display *dpy, int scrn, Drawable draw,
|
typedef Bool (GetDrawableInfo)( Display *dpy, int scrn, __DRIid draw,
|
||||||
unsigned int * index, unsigned int * stamp,
|
unsigned int * index, unsigned int * stamp,
|
||||||
int * x, int * y, int * width, int * height,
|
int * x, int * y, int * width, int * height,
|
||||||
int * numClipRects, drm_clip_rect_t * pClipRects,
|
int * numClipRects, drm_clip_rect_t * pClipRects,
|
||||||
@@ -281,7 +281,7 @@ struct __DRIdrawablePrivateRec {
|
|||||||
/**
|
/**
|
||||||
* X's drawable ID associated with this private drawable.
|
* X's drawable ID associated with this private drawable.
|
||||||
*/
|
*/
|
||||||
GLXDrawable draw;
|
__DRIid draw;
|
||||||
__DRIdrawable *pdraw;
|
__DRIdrawable *pdraw;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user