Skip to main content
Topic: Constant libGL errors on AMD graphics card (Read 3190 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Constant libGL errors on AMD graphics card

Hello. This issue started up today where for some reason every time I try to use an application requiring OpenGL or Vulkan (i.e. dolphinemu, glxgears, xonotic etc.) I keep getting the following error:

Code: [Select]
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  45
  Current serial number in output stream:  47

I'm currently running an R9 270X using  the open source drivers. Does anybody know what exactly is going on? I've looked everywhere online and have found no solutions.
“My spirit will rise from the grave and the world will see I was right.”

t. A wise man

Re: Constant libGL errors on AMD graphics card

Reply #1
Update: I found this when using modprobe
Code: [Select]
➜  ~ modprobe -v swrast
modprobe: FATAL: Module swrast not found in directory /lib/modules/4.19.4-artix1-1-ARTIX

What can I do to get swrast back?
“My spirit will rise from the grave and the world will see I was right.”

t. A wise man

Re: Constant libGL errors on AMD graphics card

Reply #2
Hmm, that's interesting. I use an RX 550 on my machine and haven't encountered anything like this (glxgears works here at least). However, I do get a mesa-related error on one of my applications and it only started recently.

Code: [Select]
mesa: for the -simplifycfg-sink-common option: may only occur zero or one times!

However this doesn't appear to do anything in my case. No idea if it's related to your issue. I also do not have the swrast module.

Re: Constant libGL errors on AMD graphics card

Reply #3
Oh I know what the issue is. I was just bit by opengl errors on this machine. The mesa package is behind on revision in world.

Code: [Select]
$ pacman -Ss mesa
world/glu 9.0.0-5 [installed]
    Mesa OpenGL Utility library
world/libva-mesa-driver 18.2.5-1
    VA-API implementation for gallium
world/mesa 18.2.5-1 [installed: 18.2.5-2]
    An open-source implementation of the OpenGL specification
world/mesa-vdpau 18.2.5-1
    Mesa VDPAU drivers
world/opencl-mesa 18.2.5-1
    OpenCL support for AMD/ATI Radeon mesa drivers
world/vulkan-intel 18.2.5-1 [installed]
    Intel's Vulkan mesa driver
world/vulkan-radeon 18.2.5-1
    Radeon's Vulkan mesa driver
extra/glu 9.0.0-5 [installed]
    Mesa OpenGL Utility library
extra/libva-mesa-driver 18.2.5-2
    VA-API implementation for gallium
extra/mesa 18.2.5-2 [installed]
    An open-source implementation of the OpenGL specification

If you install the one from extra, it should work.

 

Re: Constant libGL errors on AMD graphics card

Reply #4
Just tripped over this one just now while getting back into old SDL code. I was getting similar/same libgl errors as others. Having found the solution (for me anyways), I was about to to "spread the world" when I found this post.

This Link put the idea in my head to look at current packages.

The result of `pacman -Ss libGL`:
Code: [Select]
pacman -Ss libgl
...
world/mesa 18.2.5-1 [installed]
    An open-source implementation of the OpenGL specification
...
extra/mesa 18.2.5-2 [installed: 18.2.5-1]
    An open-source implementation of the OpenGL specification
...

What jumped out at me was the different version of mesa. Current version from Artix world is a dash revision lower than what is available from Arch extra. I forced the update to latest from arch repos by doing:

Code: [Select]
# pacman -S extra/mesa 

Problem gone...

I think an update of some packages is needed.

Re: Constant libGL errors on AMD graphics card

Reply #5
Hello again! I've installed mesa from extra, and mpv is working now but nothing else. For example, when I try to use dolphin-emu, I get this:
Code: [Select]
libEGL warning: DRI2: failed to authenticate

Furthermore, I still get this:
Code: [Select]
modprobe -v swrast
modprobe: FATAL: Module swrast not found in directory /lib/modules/4.19.4-artix1-1-ARTIX

Also, glxgears gives me this:
Code: [Select]
Error: couldn't get an RGB, Double-buffered visual

Thanks for the help btw
“My spirit will rise from the grave and the world will see I was right.”

t. A wise man

Re: Constant libGL errors on AMD graphics card

Reply #6
Hello again! I've installed mesa from extra, and mpv is working now but nothing else. For example, when I try to use dolphin-emu, I get this:
Code: [Select]
libEGL warning: DRI2: failed to authenticate

Furthermore, I still get this:
Code: [Select]
modprobe -v swrast
modprobe: FATAL: Module swrast not found in directory /lib/modules/4.19.4-artix1-1-ARTIX

Also, glxgears gives me this:
Code: [Select]
Error: couldn't get an RGB, Double-buffered visual

Thanks for the help btw

Nevermind! I rebooted my PC and everything seems to work! Though I still do get a
Code: [Select]
modprobe -v swrast
modprobe: FATAL: Module swrast not found in directory /lib/modules/4.19.4-artix1-1-ARTIX
“My spirit will rise from the grave and the world will see I was right.”

t. A wise man

Re: Constant libGL errors on AMD graphics card

Reply #7
To be honest, I've never heard of that module before this thread. I don't think it really ever existed in Arch's packages at least.

Re: Constant libGL errors on AMD graphics card

Reply #8
Execute the following...
Code: [Select]
$ pacman -Ss xf86-video-*

We're looking for the status of the "ati" or "amdgpu" drivers. Which one's have "installed" beside them?
Code: [Select]
world/xf86-video-amdgpu 18.1.0-1 (xorg-drivers)
    X.org amdgpu video driver
world/xf86-video-ati 1:18.1.0-1 (xorg-drivers)
    X.org ati video driver
If the ati is installed, that's the wrong driver for your card. R9 is a "recently" released AMD card and uses the AMDGPU driver.

See this page on installing the correct driver for your hardware. Item of note from the page is this reference...
Quote
For Vulkan support, install the vulkan-radeon package.

My advice is to double check your xorg/mesa installation and ensure it's correct for hardware.

Re: Constant libGL errors on AMD graphics card

Reply #9
version 3.5.0 of lm_sensors made my amdgpu drivers unstable (Xorg without glx): I've come back to version 3.4 and everything is now ok.