libGL error in vlc, wine and other programs

Bug #251735 reported by Bernhard Schuster
2
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(dpy);
XCloseDisplay(dpy);
...
dpy2 = XOpenDisplay();
ctx = glXCreateContext(dpy2, visual); /* fglrx reverts to indirect rendering */

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://support.ati.com/ics/support/default.asp?deptID=894&task=knowledge&questionID=35215
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=462715

Btw, since 8.7, multiple games stop working (ETQW, Warsow, ...)

Revision history for this message
Mario Limonciello (superm1) wrote :

libGL errors related to wine should be fixed in fglrx 8-9.

Changed in fglrx-installer:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.