[Mesa-dev] [PATCH 10/18] glx: Add GLX_MESA_query_renderer

Kenneth Graunke kenneth at whitecape.org
Thu Nov 7 10:59:30 PST 2013


On 10/11/2013 03:10 PM, Ian Romanick wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
> 
> THESE ARE JUST PLACEHOLDER VALUES.  DO NOT SHIP!!!

YOU SHOULD PROBABLY GET REAL VALUES BEFORE YOU SHIP THIS!

Or just delete the comment if you already have :)

> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> ---
>  include/GL/glx.h | 27 ++++++++++++++++++++++++++-
>  1 file changed, 26 insertions(+), 1 deletion(-)
> 
> diff --git a/include/GL/glx.h b/include/GL/glx.h
> index 87c31fd..234abc0 100644
> --- a/include/GL/glx.h
> +++ b/include/GL/glx.h
> @@ -468,7 +468,32 @@ extern void glXReleaseTexImageEXT(Display *dpy, GLXDrawable drawable, int buffer
>  #endif /* GLX_EXT_texture_from_pixmap */
>  
>  
> -
> +#ifndef GLX_MESA_query_renderer
> +#define GLX_MESA_query_renderer 1
> +
> +#define GLX_RENDERER_VENDOR_ID_MESA                      0x8183
> +#define GLX_RENDERER_DEVICE_ID_MESA                      0x8184
> +#define GLX_RENDERER_VERSION_MESA                        0x8185
> +#define GLX_RENDERER_ACCELERATED_MESA                    0x8186
> +#define GLX_RENDERER_VIDEO_MEMORY_MESA                   0x8187
> +#define GLX_RENDERER_UNIFIED_MEMORY_ARCHITECTURE_MESA    0x8188
> +#define GLX_RENDERER_PREFERRED_PROFILE_MESA              0x8189
> +#define GLX_RENDERER_OPENGL_CORE_PROFILE_VERSION_MESA    0x818A
> +#define GLX_RENDERER_OPENGL_COMPATIBILITY_PROFILE_VERSION_MESA    0x818B
> +#define GLX_RENDERER_OPENGL_ES_PROFILE_VERSION_MESA      0x818C
> +#define GLX_RENDERER_OPENGL_ES2_PROFILE_VERSION_MESA     0x818D
> +#define GLX_RENDERER_ID_MESA                             0x818E
> +
> +Bool glXQueryRendererIntegerMESA(Display *dpy, int screen, int renderer, int attribute, unsigned int *value);
> +Bool glXQueryCurrentRendererIntegerMESA(int attribute, unsigned int *value);
> +const char *glXQueryRendererStringMESA(Display *dpy, int screen, int renderer, int attribute);
> +const char *glXQueryCurrentRendererStringMESA(int attribute);
> +
> +typedef Bool (*PFNGLXQUERYRENDERERINTEGERMESAPROC) (Display *dpy, int screen, int renderer, int attribute, unsigned int *value);
> +typedef Bool (*PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC) (int attribute, unsigned int *value);
> +typedef const char *(*PFNGLXQUERYRENDERERSTRINGMESAPROC) (Display *dpy, int screen, int renderer, int attribute);
> +typedef const char *(*PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC) (int attribute);
> +#endif /* GLX_MESA_query_renderer */
>  
>  /*** Should these go here, or in another header? */
>  /*
> 


More information about the mesa-dev mailing list