GL version in i965 driver [or rather a failure of Mesa/DRI to communicate important info to the user]

Philipp Klaus Krause <[email protected]> Tue, 16 Sep 2008 13:21:13 +0200
Newsgroups gmane.comp.video.dri.user,gmane.comp.video.mesa3d.user
Message-ID <[email protected]>
Both someone on opengl.org and me get this from glxinfo:

OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) 965GM 20061102
OpenGL version string: 1.4 Mesa 7.1

I see no error messages with LIBGL_DEBUG=verbose.

Why is the GL version 1.4 instead of 2.1? The i965 driver seems to offer
the necessary extensions (with one exception, see below), there's a
#define need_GL_VERSION_2_1 in the code.

The driver does not advertise GL_ARB_occlusion_query. However there's a
#define need_GL_ARB_occlusion_query in the code and there have been
multiple commits to mesa that claim to have made changes to ARB
occlusion queries in the i965 driver.

Philipp

P.S.:
I now found out about this problem (by looking at the svn changelogs),
however I decided to leave the text above as written to illustrate that
something has to be done about this since it really confuses Mesa users.
Mesa users wonder why they don't get GL 2.1 and Mesa fails at telling
them why.
Occlusion queries need DRM 1.8. Most people seem to have lower versions.

Please give a warning / error message when the DRM version is too low to
support all features supported by the driver, at least when
LIGL_DEBUG=verbose is enabled.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
--