typedef struct drm_clip_rect drm_clip_rect_t;
#endif
-#include <GL/gl.h>
-
#include <stdint.h>
/**
* setTexBuffer2 in version 2 of this interface
*/
void (*setTexBuffer)(__DRIcontext *pDRICtx,
- GLint target,
+ int target,
__DRIdrawable *pDraw);
/**
* \since 2
*/
void (*setTexBuffer2)(__DRIcontext *pDRICtx,
- GLint target,
- GLint format,
+ int target,
+ int format,
__DRIdrawable *pDraw);
/**
* Method to release texture buffer in case some special platform
* \since 3
*/
void (*releaseTexBuffer)(__DRIcontext *pDRICtx,
- GLint target,
+ int target,
__DRIdrawable *pDraw);
};
* \param flags a combination of __DRI2_FENCE_FLAG_xxx flags
* \param timeout the timeout in ns or __DRI2_FENCE_TIMEOUT_INFINITE
*/
- GLboolean (*client_wait_sync)(__DRIcontext *ctx, void *fence,
- unsigned flags, uint64_t timeout);
+ unsigned char (*client_wait_sync)(__DRIcontext *ctx, void *fence,
+ unsigned flags, uint64_t timeout);
/**
* This function enqueues a wait command into the command stream of
* the rate of the "media stream counter". In practical terms, this is
* the frame refresh rate of the display.
*/
- GLboolean (*getMSCRate)(__DRIdrawable *draw,
+ unsigned char (*getMSCRate)(__DRIdrawable *draw,
int32_t * numerator, int32_t * denominator,
void *loaderPrivate);
};
void (*reportDamage)(__DRIdrawable *draw,
int x, int y,
drm_clip_rect_t *rects, int num_rects,
- GLboolean front_buffer,
+ unsigned char front_buffer,
void *loaderPrivate);
};
*
* \since 6
*/
- GLboolean (*getImageShm2)(__DRIdrawable *readable,
- int x, int y, int width, int height,
- int shmid, void *loaderPrivate);
+ unsigned char (*getImageShm2)(__DRIdrawable *readable,
+ int x, int y, int width, int height,
+ int shmid, void *loaderPrivate);
};
/**
unsigned int use,
void *loaderPrivate);
- GLboolean (*queryImage)(__DRIimage *image, int attrib, int *value);
+ unsigned char (*queryImage)(__DRIimage *image, int attrib, int *value);
/**
* The new __DRIimage will share the content with the old one, see dup(2).
*
* \since 2
*/
- GLboolean (*validateUsage)(__DRIimage *image, unsigned int use);
+ unsigned char (*validateUsage)(__DRIimage *image, unsigned int use);
/**
* Unlike createImageFromName __DRI_IMAGE_FORMAT is not used but instead
*
* \since 15
*/
- GLboolean (*queryDmaBufFormats)(__DRIscreen *screen, int max,
- int *formats, int *count);
+ unsigned char (*queryDmaBufFormats)(__DRIscreen *screen, int max,
+ int *formats, int *count);
/*
* dmabuf format modifier query for a given format to support
*
* \since 15
*/
- GLboolean (*queryDmaBufModifiers)(__DRIscreen *screen, int fourcc,
- int max, uint64_t *modifiers,
- unsigned int *external_only,
- int *count);
+ unsigned char (*queryDmaBufModifiers)(__DRIscreen *screen, int fourcc,
+ int max, uint64_t *modifiers,
+ unsigned int *external_only,
+ int *count);
/**
* dmabuf format modifier attribute query for a given format and modifier.
*
* \since 16
*/
- GLboolean (*queryDmaBufFormatModifierAttribs)(__DRIscreen *screen,
- uint32_t fourcc, uint64_t modifier,
- int attrib, uint64_t *value);
+ unsigned char (*queryDmaBufFormatModifierAttribs)(__DRIscreen *screen,
+ uint32_t fourcc,
+ uint64_t modifier,
+ int attrib,
+ uint64_t *value);
/**
* Create a DRI image from the given renderbuffer.
*
* \since 2
*/
- GLboolean (*validateEGLImage)(void *image, void *loaderPrivate);
+ unsigned char (*validateEGLImage)(void *image, void *loaderPrivate);
/**
* Lookup EGLImage after validateEGLImage(). No lock in this function.
* the context was created. This can be used by the loader to identify
* which context any callbacks are associated with.
*/
- GLboolean (*isThreadSafe)(void *loaderPrivate);
+ unsigned char (*isThreadSafe)(void *loaderPrivate);
};
/**