libGL error in vlc, wine and other programs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fglrx-installer (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
kernel: 2.6.24-20-generic
arch: x86_64
fglrx: 8.7
Most programs using Opengl for output acceleration, give me this error (like vlc when it usees Opengl as output method):
vlc
VLC media player 0.8.6e Janus
[00000350] main private error: option glx-shm does not exist
libGL error: drmGetMagic failed
libGL error: reverting to (slow) indirect rendering
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 163 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 58
Current serial number in output stream: 58
Wine got this some versions beyond.. with fglrx 8.6 8.5 and other kernels aswell.
A Quote from winhq bug which is about the exact same error:
libGL error: drmGetMagic failed
libGL error: reverting to (slow) indirect rendering
This is definitely an fglrx bug, and seems linked to opening more than one
display connection. I can easily reproduce the bug with code like this:
dpy = XOpenDisplay();
visual = glXChooseVisual
XCloseDisplay(dpy);
...
dpy2 = XOpenDisplay();
ctx = glXCreateContex
I've tested the above code with fglrx versions up to 8.5, and it reproduces the
bug 100% of the times. If you do not close the first display connection the bug
still occurs, albeit not always.
Several applications seem affected by this, including VLC Media Player. It
might be worth it to check whether Wine uses multiple display connections.
These two bugs may be related:
http://
http://
Btw, since 8.7, multiple games stop working (ETQW, Warsow, ...)
libGL errors related to wine should be fixed in fglrx 8-9.