Created attachment 100187 [details] unigine log I have an intel + amd dedicated card laptop I use DRI_PRIME to launch unigine heaven on the dedicated card. Without e3cc0d90e14e62a0a787b6c07a6df0f5c84039be, everything works correctly. With e3cc0d90e14e62a0a787b6c07a6df0f5c84039be, Unigine fails to load the radeonsi driver. In addition, under a Wayland compositor (weston or mutter) with XWayland Glamor acceleration, launching unigine heaven crashes the compositor (with the commit). I'm attaching the unigine heaven log, and the log of Weston when it crashes. The weston log is surprising: XWayland uses Glamor with intel acceleration (with DRI3 working), though it complaints about swrast. Like if it was using intel_dri, and then switched to swrast_dri and then crashed. XWayland crashes, and Weston with it (Weston crashes most of the time when XWayland crashes).
Created attachment 100188 [details] Weston log
After looking closer at the weston log, the swrast_dri reference seems to be GLX X side, so probably indirect rendering failing, which has nothing to do with the bug I'm reporting.
Confirmed on r600g.
Ugh... this should also affect the 10.2 release branch. I'm not super excited about reverting patches, but I don't want to ship a release with Unigine broken either. Ideas / suggestions?
The patch that changed RTLD_GLOBAL to RTLD_LOCAL was incorrect; see http://lists.freedesktop.org/archives/mesa-dev/2014-May/060441.html dlopening libGL to bring symbols from libglapi is a gross hack, but now that code became a broken gross hack. I don't understand the problem that that commit was intended to fix. Can anyone point me to the discussion about "for some driver this even result in dlclose failing to unload leading to catastrophic failure with swrast fallback" (quoted from the commit message)? The request to link dri drivers against libglapi was registered as bug 57702
(In reply to comment #3) > Confirmed on r600g. +1 (Evergreen)
I didn't do a full bisect (I come back about 20 commits) but this prevents running Unity (Ubuntu desktop) on r300g.
(In reply to comment #4) > Ugh... this should also affect the 10.2 release branch. I'm not super > excited about reverting patches, but I don't want to ship a release with > Unigine broken either. > > Ideas / suggestions? I vote for reverting. It seems to break too many apps.
Same problem for other users: http://www.phoronix.com/forums/showthread.php?50038-Updated-and-Optimized-Ubuntu-Free-Graphics-Drivers&p=420455#post420455
(In reply to comment #6) > (In reply to comment #3) > > Confirmed on r600g. > +1 (Evergreen) +1 on cypress can't launch unity desktop
Also kills Compiz/Unity on my Ironlake, Haswell (Iris Pro 5200) and NV50 (NVAC) machines. This commit seems to bust everything out there.
(In reply to comment #5) > The patch that changed RTLD_GLOBAL to RTLD_LOCAL was incorrect; see > http://lists.freedesktop.org/archives/mesa-dev/2014-May/060441.html > > dlopening libGL to bring symbols from libglapi is a gross hack, but now that > code became a broken gross hack. The only part that's broken here is changing the dlopen(libGL) to LOCAL, since we apparently need that to get at glapi. The other part, changing dlopen(driver) to LOCAL, is still correct.
FYI, I reverted the patch.
While Unity now loads, graphic is still completely messed up for intel cards http://www.phoronix.com/forums/showthread.php?50038-Updated-and-Optimized-Ubuntu-Free-Graphics-Drivers/page116
(In reply to comment #14) > While Unity now loads, graphic is still completely messed up for intel cards > > http://www.phoronix.com/forums/showthread.php?50038-Updated-and-Optimized- > Ubuntu-Free-Graphics-Drivers/page116 Please file a separate bug report. The posts you linked don't appear to have anything to do with Unigine Heaven or r600g.
(In reply to comment #15) > (In reply to comment #14) > > While Unity now loads, graphic is still completely messed up for intel cards > > > > http://www.phoronix.com/forums/showthread.php?50038-Updated-and-Optimized- > > Ubuntu-Free-Graphics-Drivers/page116 > > Please file a separate bug report. The posts you linked don't appear to > have anything to do with Unigine Heaven or r600g. I have problems of figuring out which Mesa is in use there but the symptoms looks similar to bug #79534, please check that when filing the bug.
Intel HD 3000 This shit: http://storage5.static.itmages.ru/i/14/0607/h_1402139007_1933036_f891719247.png
(In reply to comment #17) > Intel HD 3000 > > This shit: > http://storage5.static.itmages.ru/i/14/0607/h_1402139007_1933036_f891719247. > png Please file a separate bug. This report is about something else.
commit 0d5ec2c615784929be095951f9269773a790a2dd Author: Marek Olšák <marek.olsak@amd.com> Date: Mon Jun 2 12:51:09 2014 +0200 Revert "glx: load dri driver with RTLD_LOCAL so dlclose never fails to unload" This reverts commit e3cc0d90e14e62a0a787b6c07a6df0f5c84039be. It breaks too many apps and completely breaks my desktop too. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79469
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.