X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fglx%2Fglxclient.h;h=3e8274e1c3ab9db0711954b8024e121a650f1cb4;hb=52426ce4a929f7e1389baf490967fc02357b3f5e;hp=7a249281081d0319eb5242f47d52c44e4f25e2eb;hpb=37d3a26bd620703f63673101f4093d13fb97ddef;p=mesa.git diff --git a/src/glx/glxclient.h b/src/glx/glxclient.h index 7a249281081..3e8274e1c3a 100644 --- a/src/glx/glxclient.h +++ b/src/glx/glxclient.h @@ -56,6 +56,16 @@ #include "glxextensions.h" +#if defined(USE_LIBGLVND) +#define _GLX_PUBLIC _X_HIDDEN +#else +#define _GLX_PUBLIC _X_EXPORT +#endif + +#ifdef __cplusplus +extern "C" { +#endif + #define GLX_MAJOR_VERSION 1 /* current version numbers */ #define GLX_MINOR_VERSION 4 @@ -144,11 +154,15 @@ struct __GLXDRIdrawableRec extern __GLXDRIdisplay *driswCreateDisplay(Display * dpy); extern __GLXDRIdisplay *driCreateDisplay(Display * dpy); extern __GLXDRIdisplay *dri2CreateDisplay(Display * dpy); +extern __GLXDRIdisplay *dri3_create_display(Display * dpy); +extern __GLXDRIdisplay *driwindowsCreateDisplay(Display * dpy); + +/* +** +*/ extern void dri2InvalidateBuffers(Display *dpy, XID drawable); extern unsigned dri2GetSwapEventType(Display *dpy, XID drawable); -extern __GLXDRIdisplay *dri3_create_display(Display * dpy); - /* ** Functions to obtain driver configuration information from a direct ** rendering client application @@ -208,9 +222,9 @@ typedef struct __GLXattributeMachineRec __GLXattribute **stackPointer; } __GLXattributeMachine; -typedef struct _mesa_glinterop_device_info mesa_glinterop_device_info; -typedef struct _mesa_glinterop_export_in mesa_glinterop_export_in; -typedef struct _mesa_glinterop_export_out mesa_glinterop_export_out; +struct mesa_glinterop_device_info; +struct mesa_glinterop_export_in; +struct mesa_glinterop_export_out; struct glx_context_vtable { void (*destroy)(struct glx_context *ctx); @@ -227,10 +241,10 @@ struct glx_context_vtable { void (*release_tex_image)(Display * dpy, GLXDrawable drawable, int buffer); void * (*get_proc_address)(const char *symbol); int (*interop_query_device_info)(struct glx_context *ctx, - mesa_glinterop_device_info *out); + struct mesa_glinterop_device_info *out); int (*interop_export_object)(struct glx_context *ctx, - const mesa_glinterop_export_in *in, - mesa_glinterop_export_out *out); + struct mesa_glinterop_export_in *in, + struct mesa_glinterop_export_out *out); }; /** @@ -423,6 +437,12 @@ struct glx_context */ unsigned long thread_refcount; + /** + * GLX_ARB_create_context_no_error setting for this context. + * This needs to be kept here to enforce shared context rules. + */ + Bool noError; + char gl_extension_bits[__GL_EXT_BYTES]; }; @@ -596,6 +616,9 @@ struct glx_display __GLXDRIdisplay *dri2Display; __GLXDRIdisplay *dri3Display; #endif +#ifdef GLX_USE_WINDOWSGL + __GLXDRIdisplay *windowsdriDisplay; +#endif }; struct glx_drawable { @@ -629,8 +652,6 @@ extern void __glXSendLargeCommand(struct glx_context *, const GLvoid *, GLint, /* Initialize the GLX extension for dpy */ extern struct glx_display *__glXInitialize(Display *); -extern void __glXPreferEGL(int state); - /************************************************************************/ extern int __glXDebug; @@ -824,4 +845,12 @@ indirect_create_context_attribs(struct glx_screen *base, const uint32_t *attribs, unsigned *error); + +extern int __glXGetDrawableAttribute(Display * dpy, GLXDrawable drawable, + int attribute, unsigned int *value); + +#ifdef __cplusplus +} +#endif + #endif /* !__GLX_client_h__ */