just formatting clean-ups
This commit is contained in:
@@ -53,12 +53,14 @@ static const int empty_attribute_list[1] = { None };
|
|||||||
static int api_ver = 0;
|
static int api_ver = 0;
|
||||||
|
|
||||||
/* forward declarations */
|
/* forward declarations */
|
||||||
static int driQueryFrameTracking( __DRInativeDisplay * dpy, void * priv,
|
static int driQueryFrameTracking( __DRInativeDisplay *dpy, void *priv,
|
||||||
int64_t * sbc, int64_t * missedFrames, float * lastMissedUsage,
|
int64_t *sbc, int64_t *missedFrames,
|
||||||
float * usage );
|
float *lastMissedUsage, float *usage );
|
||||||
|
|
||||||
static void *driCreateNewDrawable(__DRInativeDisplay *dpy, const __GLcontextModes *modes,
|
static void *driCreateNewDrawable(__DRInativeDisplay *dpy,
|
||||||
__DRIid draw, __DRIdrawable *pdraw, int renderType, const int *attrs);
|
const __GLcontextModes *modes,
|
||||||
|
__DRIid draw, __DRIdrawable *pdraw,
|
||||||
|
int renderType, const int *attrs);
|
||||||
|
|
||||||
static void driDestroyDrawable(__DRInativeDisplay *dpy, void *drawablePrivate);
|
static void driDestroyDrawable(__DRInativeDisplay *dpy, void *drawablePrivate);
|
||||||
|
|
||||||
@@ -642,8 +644,8 @@ static void *driCreateNewDrawable(__DRInativeDisplay *dpy,
|
|||||||
return (void *) pdp;
|
return (void *) pdp;
|
||||||
}
|
}
|
||||||
|
|
||||||
static __DRIdrawable *driGetDrawable(__DRInativeDisplay *dpy, __DRIid draw,
|
static __DRIdrawable *
|
||||||
void *screenPrivate)
|
driGetDrawable(__DRInativeDisplay *dpy, __DRIid draw, void *screenPrivate)
|
||||||
{
|
{
|
||||||
__DRIscreenPrivate *psp = (__DRIscreenPrivate *) screenPrivate;
|
__DRIscreenPrivate *psp = (__DRIscreenPrivate *) screenPrivate;
|
||||||
|
|
||||||
@@ -654,7 +656,8 @@ static __DRIdrawable *driGetDrawable(__DRInativeDisplay *dpy, __DRIid draw,
|
|||||||
return __driFindDrawable(psp->drawHash, draw);
|
return __driFindDrawable(psp->drawHash, draw);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void driDestroyDrawable(__DRInativeDisplay *dpy, void *drawablePrivate)
|
static void
|
||||||
|
driDestroyDrawable(__DRInativeDisplay *dpy, void *drawablePrivate)
|
||||||
{
|
{
|
||||||
__DRIdrawablePrivate *pdp = (__DRIdrawablePrivate *) drawablePrivate;
|
__DRIdrawablePrivate *pdp = (__DRIdrawablePrivate *) drawablePrivate;
|
||||||
__DRIscreenPrivate *psp = pdp->driScreenPriv;
|
__DRIscreenPrivate *psp = pdp->driScreenPriv;
|
||||||
@@ -695,7 +698,8 @@ static void driDestroyDrawable(__DRInativeDisplay *dpy, void *drawablePrivate)
|
|||||||
* This function calls __DriverAPIRec::DestroyContext on \p contextPrivate, calls
|
* This function calls __DriverAPIRec::DestroyContext on \p contextPrivate, calls
|
||||||
* drmDestroyContext(), and finally frees \p contextPrivate.
|
* drmDestroyContext(), and finally frees \p contextPrivate.
|
||||||
*/
|
*/
|
||||||
static void driDestroyContext(__DRInativeDisplay *dpy, int scrn, void *contextPrivate)
|
static void
|
||||||
|
driDestroyContext(__DRInativeDisplay *dpy, int scrn, void *contextPrivate)
|
||||||
{
|
{
|
||||||
__DRIcontextPrivate *pcp = (__DRIcontextPrivate *) contextPrivate;
|
__DRIcontextPrivate *pcp = (__DRIcontextPrivate *) contextPrivate;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user