[Mesa-users] version string for OpenGL not correct?
Benjamin Bellec
b.bellec at gmail.com
Tue Aug 11 11:41:38 PDT 2015
Indeed, I also got the Steam crash. I guess Steam doesn't expect to see a
"core profile" string in the string it is parsing. Steam only/always
reports the Compatibility profile, I don't know why. You can check in the
Steam menu "Help" > "System info".
Anyway, I browsed the Mesa source code and saw an undocumented override
option :
$ MESA_GL_VERSION_OVERRIDE=3.3*COMPAT* glxinfo | grep "OpenGL version"
OpenGL version string: 3.3 Mesa 10.7.0-devel (git-013d731)
And so Steam worked too :
$ MESA_GL_VERSION_OVERRIDE=3.3COMPAT steam
2015-08-11 19:41 GMT+02:00 andrew henry <adhenry.9 at gmail.com>:
> thanks for the info. I wondered if there would be a version override!
> But it didnt work. Trying as you suggested Steam seg faulted.
>
> I added "env=" to the beginning:
>
> $ env=MESA_GL_VERSION_OVERRIDE=3.3FC steam
>
> And steam started but I still got the same error message about wrong
> opengl version.
>
>
> On 11/08/15 19:25, Benjamin Bellec wrote:
> > I see.
> > Given that the game is recent and seems to be an AAA game, I'm pretty
> > sure it requires OpenGL core profile and not Compatibility (also called
> > "Forward Compatible").
> > So this is clearly and error from the game.
> >
> > Hopefully Mesa has a mechanism to override the GL level it exposes.
> > You can experiment this with this command :
> > $ MESA_GL_VERSION_OVERRIDE=3.3FC glxinfo | grep "OpenGL version"
> >
> > So try to launch Steam :
> > $ MESA_GL_VERSION_OVERRIDE=3.3FC steam
> >
> > More information here : http://www.mesa3d.org/envvars.html
> >
> > 2015-08-11 19:07 GMT+02:00 andrew henry <adhenry.9 at gmail.com
> > <mailto:adhenry.9 at gmail.com>>:
> >
> > On 11/08/15 18:55, Benjamin Bellec wrote:
> > > Hello,
> > >
> > > This is a recurrent mistake.
> > >
> > > glxinfo | grep "OpenGL version" gives you the level for the GL
> > > Compatibility profile. Mesa is currently limited to GL3.0 in
> > > Compatibility level and the developers don't plan to implement
> higher
> > > Compatibility level.
> > >
> > > What you are looking for is in fact the OpenGL Core profile, which
> you
> > > get with the command :
> > > glxinfo | grep -A 1 "OpenGL core profile version"
> > >
> > > Regards.
> > >
> > > --
> > > Benjamin
> >
> > Hi.
> >
> > I did see that core profile was set to 3.3, but my problem--that
> Dying
> > Light on Steam does not start--is that Dying Light is getting the
> string
> > for the compatibility version if what you say is true.
> >
> > glxinfo gives me this. Look at the line that says
> >
> > "OpenGL version string: 3.0 Mesa 11.0.0-devel"
> >
> >
> > OpenGL vendor string: X.Org
> > OpenGL renderer string: Gallium 0.4 on AMD CAPE VERDE (DRM 2.42.0,
> LLVM
> > 3.6.2)
> > OpenGL core profile version string: 3.3 (Core Profile) Mesa
> 11.0.0-devel
> > OpenGL core profile shading language version string: 3.30
> > OpenGL core profile context flags: (none)
> > OpenGL core profile profile mask: core profile
> > OpenGL core profile extensions:
> > OpenGL version string: 3.0 Mesa 11.0.0-devel
> > OpenGL shading language version string: 1.30
> > OpenGL context flags: (none)
> > OpenGL extensions:
> > OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.0.0-devel
> > OpenGL ES profile shading language version string: OpenGL ES GLSL ES
> > 3.00
> > OpenGL ES profile extensions:
> > [andrew at blackbox ~]$ glxinfo | grep -A 1 "OpenGL core profile
> version"
> > OpenGL core profile version string: 3.3 (Core Profile) Mesa
> 11.0.0-devel
> > OpenGL core profile shading language version string: 3.30
> >
> > In the error message that Dying Light throws out, I can clearly tell
> > that it's getting the string to tell it what version I have from the
> > "compatibility level" and not the core profile string:
> >
> > http://ibin.co/2BnE5j6fUTX5
> >
> > Maybe this is a fault of the dying light devs rather than Mesa?
> >
> >
> >
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-users/attachments/20150811/bbd49a03/attachment-0001.html>
More information about the mesa-users
mailing list