English
Ask Your Question
1

Mesa reports incorrect OpenGL version

asked 2017-03-20 19:26:20 +0000

graslany gravatar image

Hello everyone

TL;DR: How to make mesa report the right OpenGL version support for my GTX 970?

I own a GTX 970 graphics card. I'm running Fedora 25 with nvidia driver installed, as reported by lsmod : http://pastebin.com/sTFYWZ4S

When I run glxinfo | grep version (full dump on http://pastebin.com/WxB10089 ), it says that OpenGL 2.1 is supported:

server glx version string: 1.4 client glx version string: 1.4 GLX version: 1.4 Max core profile version: 0.0 Max compat profile version: 2.1 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 2.0 OpenGL version string: 2.1 Mesa 13.0.4 OpenGL shading language version string: 1.30 OpenGL ES profile version string: OpenGL ES 2.0 Mesa 13.0.4 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16

However, according to Wikipedia, both mesa 13 and the Maxwell nvidia cards support OpenGL 4.4. Could someone please explain to me why these lovely things do not function as advertised and how to investigate the problem? Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-03-20 20:09:17 +0000

graslany gravatar image

Oops, it turns out that I asked this question a bit too quickly! I finally found the answer myself. I will post it though, in case it might benefit others.

So I took a long time finding out what was going on (hence my post) because I was looking in the wrong place. Seeing that the nvidia module was loaded and that mesa was reporting an invalid OpenGL version, I believed that is was a mesa problem. It was actually a xorg.conf problem.

When I opened the /var/log/X/xorg.conf file, i found error lines complaining about the nvidia module being unable to load its glx module, and therefore reverting to software rendering. In this same file I found lines saying that a "Xorg foundation" glx module was loaded. It seems that nvidia uses its own glx module, not the Xorg fundation glx module. Using the information form this post ( http://forums.fedoraforum.org/showthr... ) i replaced the xorg.conf file with the contents from nvidia-xorg.conf, which ended up int the following file :

RPM Fusion - nvidia-xorg.conf
Section "Device"
    Identifier  "Videocard0"
    Driver      "nvidia"
EndSection

"glxinfo | grep -i version" now reports the correct version :

server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
OpenGL core profile version string: 4.5.0 NVIDIA 375.39
OpenGL core profile shading language version string: 4.50 NVIDIA
OpenGL version string: 4.5.0 NVIDIA 375.39
OpenGL shading language version string: 4.50 NVIDIA
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 375.39
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    GL_EXT_separate_shader_objects, GL_EXT_shader_implicit_conversions,
edit flag offensive delete link more

Comments

Thank you for coming back and explaining how you got everything working as all too many new users never bother to come back once they've found what they needed. Please don't be a stranger here, as we can always use more people looking at issues and suggesting fixes.

sideburns ( 2017-03-20 20:25:00 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

Follow
1 follower

Stats

Asked: 2017-03-20 19:25:36 +0000

Seen: 240 times

Last updated: Mar 20