[Mesa-dev] [PATCH 2/2] glxinfo/wglinfo: print list of 4.3 shading language versions

Brian Paul brianp at vmware.com
Wed Feb 21 17:15:15 UTC 2018


On 02/21/2018 09:43 AM, Mike Lothian wrote:
> It also seems to have an off by one error

The empty line is actually a valid result of the 
glGetStringi(GL_SHADING_LANGUAGE_VERSION) query.  Per the GL 4.3 spec, 
page 628:

"An empty string indicates support for OpenGL Shading Language 1.10, 
which did not include the #version compiler directive."

-Brian


> 
> On Wed, 21 Feb 2018 at 16:41 Mike Lothian <mike at fireburn.co.uk 
> <mailto:mike at fireburn.co.uk>> wrote:
> 
>     This doesn't show as default and seems to be tucked away
>     under GL_ARB_transform_feedback3
> 
>        GL_ARB_transform_feedback3:
>          GL_MAX_TRANSFORM_FEEDBACK_BUFFERS = 4
>          GL_MAX_VERTEX_STREAMS = 4
>          GL_NUM_SHADING_LANGUAGE_VERSIONS = 16
>              450
>              440
>              430
>              420
>              410
>              400
>              330
>              150
>              140
>              130
>              120
> 
>              320 es
>              310 es
>              300 es
>              100
> 
> 
>     On Wed, 21 Feb 2018 at 16:13 Brian Paul <brianp at vmware.com
>     <mailto:brianp at vmware.com>> wrote:
> 
>         ---
>           src/xdemos/glinfo_common.c | 13 +++++++++++++
>           1 file changed, 13 insertions(+)
> 
>         diff --git a/src/xdemos/glinfo_common.c b/src/xdemos/glinfo_common.c
>         index 0411891..c36cff1 100644
>         --- a/src/xdemos/glinfo_common.c
>         +++ b/src/xdemos/glinfo_common.c
>         @@ -794,6 +794,19 @@ print_limits(const char *extensions, const
>         char *oglstring, int version,
>                 }
>                 free(formats);
>              }
>         +
>         +#if defined(GL_VERSION_4_3)
>         +   if (version >= 43) {
>         +      GLint i, n = 0;
>         +      glGetIntegerv(GL_NUM_SHADING_LANGUAGE_VERSIONS, &n);
>         +      printf("    GL_NUM_SHADING_LANGUAGE_VERSIONS = %d\n", n);
>         +      for (i = 0; i < n; i++) {
>         +         printf("        %s\n", (const char *)
>         +               
>         extfuncs->GetStringi(GL_SHADING_LANGUAGE_VERSION, i));
>         +      }
>         +   }
>         +#endif
>         +
>           #if defined(GL_ARB_vertex_program)
>              if (extension_supported("GL_ARB_vertex_program", extensions)) {
>                 print_program_limits(GL_VERTEX_PROGRAM_ARB, extfuncs);
>         --
>         2.7.4
> 
>         _______________________________________________
>         mesa-dev mailing list
>         mesa-dev at lists.freedesktop.org
>         <mailto:mesa-dev at lists.freedesktop.org>
>         https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>         <https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.freedesktop.org_mailman_listinfo_mesa-2Ddev&d=DwMFaQ&c=uilaK90D4TOVoH58JNXRgQ&r=Ie7_encNUsqxbSRbqbNgofw0ITcfE8JKfaUjIQhncGA&m=GIB9-c_mAwMpAaFQGmeDHEj3Ok0wkW3KJP-TMrEUfNo&s=_AcdBPvRIYKaMa4aSyy6AUyfQLTD73PJoweKC5bYC3Q&e=>
> 



More information about the mesa-dev mailing list