Check out our Monthly Survey Page to see what our users are running.
OpenGL version of r600 driver
donbastiano Sep 9, 2016
Moving to Ubuntu 16.04 from 14.04 I run now the open driver vs fglrx. While I really appreciate the open driver and now the notebook is using less power (very nice thing) I think I'm having some problem with OpenGL.
From mesamatrix, if I'm not wrong, the r600 support the 4.1 version while on my system the version appears to be 3.0. I enabled the Oibaf ppa and then installed also the 4.7 kernel but it is the same.

$ DRI_PRIME=1 glxinfo | grep -i opengl
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD TURKS (DRM 2.45.0 / 4.7.0-040700-generic, LLVM 3.9.0)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 12.1.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 12.1.0-devel
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:

$ xrandr --listproviders 
Providers: number : 3
Provider 0: id: 0x6d cap: 0x9, Source Output, Sink Offload crtcs: 3 outputs: 5 associated providers: 2 name:Intel
Provider 1: id: 0x45 cap: 0x6, Sink Output, Source Offload crtcs: 6 outputs: 0 associated providers: 2 name:TURKS @ pci:0000:01:00.0
Provider 2: id: 0x45 cap: 0x6, Sink Output, Source Offload crtcs: 6 outputs: 0 associated providers: 2 name:TURKS @ pci:0000:01:00.0

$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M] (rev ff)

$ lspci -v | grep -i driver
...
Kernel driver in use: radeon


Any idea?
manero666 Sep 9, 2016
Maybe you have some leftover from the previous Ubuntu version

try to
ls /etc/X11
and
ls /etc/X11/xorg.conf.d/
to see if there is something strange

also you can config the driver by adding a dedicated file in /etc/X11/xorg.conf.d/

check here and here for more infos

$ ls -o /etc/X11/

total 8
drwxr-xr-x 3 root 4096 Sep  7 00:30         xinit
drwxr-xr-x 2 root 4096 Sep  7 13:52         xorg.conf.d


$ ls -o /etc/X11/xorg.conf.d/

total 8
-rw-r--r-- 1 root 320 Sep  7 00:05              00-keyboard.conf
-rw-r--r-- 1 root 109 Sep  7 13:52              20-amdgpu.conf


$ cat /etc/X11/xorg.conf.d/20-amdgpu.conf 

Section "Device"
  Identifier "AMD"
  Driver "amdgpu"
  Option "DRI" "3"
  Option "TearFree" "on"
EndSection
donbastiano Sep 9, 2016
Thank you, no, it's a new installation. Actually I tried to upgrade but something gone wrong so I installed from the live iso formatting the root "/" partition (the home is in another partition).
I tried to enable DRI 3 but I've got a black screen, I'll retry now that I have the Oibaf ppa enabled

Edit: same problem, enabling DRI 3 I got a low graphic mode message. In Xorg.0.log appears the "No device detected" error. Maybe I have to configure both I mean also the intel driver?

Edit2: adding also a 10-intel.conf X starts ok and DRI 3 is enabled:
$ cat /var/log/Xorg.0.log | grep DRI
[   762.823] (**) intel(0): Option "DRI" "3"
[   762.945] (**) RADEON(G0): Option "DRI" "3"
[   762.947] (II) RADEON(G0): [DRI2] Setup complete
[   762.947] (II) RADEON(G0): [DRI2]   DRI driver: r600
[   762.947] (II) RADEON(G0): [DRI2]   VDPAU driver: r600
[   762.948] (**) RADEON(G0): DRI3 enabled
[   762.950] (II) intel(0): [DRI2] Setup complete
[   762.950] (II) intel(0): [DRI2]   DRI driver: i965
[   762.950] (II) intel(0): [DRI2]   VDPAU driver: va_gl
[   762.950] (II) intel(0): direct rendering: DRI2 DRI3 enabled
[   762.993] (II) GLX: Initialized DRI2 GL provider for screen 0

DRI_PRIME=1 or 2 is not working anymore... I have to investigate
Masush5 Sep 10, 2016
When checking the OpenGL version while using the Mesa drivers, you have to look at the core profile version string.
Mesa does not support compatibility profiles, so it will always display 3.0 as the highest non-Core version.
In your case OpenGL 3.3 is supported. OpenGL 4.1 support for r600 is limited to a few chips which support fp64 in hardware.
TURKS based cards are not among them, so unless someone implements fp64 software emulation in Mesa you will be stuck on 3.3. You can however override the advertised GL version to whatever you like, as there is most likely not a single game which actually uses fp64. Have a look here: http://www.mesa3d.org/envvars.html
donbastiano Sep 10, 2016
Thank you! Now it is clear!
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register


Or login with...
Sign in with Steam Sign in with Google
Social logins require cookies to stay logged in.