Unity unnecessarily goes to low graphics mode
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Unity |
Fix Released
|
Medium
|
Sinclair Yeh | |
| | unity (Ubuntu) |
Medium
|
Sinclair Yeh | ||
Bug Description
Unity goes into low graphics mode when it detects "LLVM" in the renderer string. "LLVM" is not the right pattern to match because there are now accelerated Gallium drivers those also report "LLVM" in the render string, e.g. VMWare and Radeon.
For example, this bug that showed up recently: https:/
Gallium drivers may fall back to the Gallium Draw module for certain operations, and the Draw module can go down an LLVM path if necessarily and enabled.
I think the original intention of this check is to catch "llvmpipe" driver, so I've attached a patch to do just that. Also, instead of matching "on softpipe", it seems that "softpipe" is sufficient.
FYI, this fix can hopefully end up in Ubuntu 14.04 onwards.
Unfortunately, I can't get through my company's proxy to push my branch, so instead of a merge request, please see the patch attached.
Related branches
- Marco Trevisan (Treviño): Approve on 2015-09-08
- PS Jenkins bot: Needs Fixing (continuous-integration) on 2015-09-08
-
Diff: 14 lines (+2/-2)1 file modifiedplugins/unityshell/src/unityshell.cpp (+2/-2)
| Sinclair Yeh (sinclair-yeh) wrote : | #1 |
| Changed in unity: | |
| status: | New → Triaged |
| importance: | Undecided → Medium |
| Changed in unity (Ubuntu): | |
| status: | New → Triaged |
| importance: | Undecided → Medium |
| Changed in unity: | |
| status: | Triaged → In Progress |
| Changed in unity (Ubuntu): | |
| status: | Triaged → In Progress |
| Andrea Azzarone (azzar1) wrote : | #3 |
Here [1] you can find the MP with the attached patch. Thanks!
[1] https:/
| Launchpad Janitor (janitor) wrote : | #4 |
This bug was fixed in the package unity - 7.3.2+15.
---------------
unity (7.3.2+
[ Andrea Azzarone <email address hidden> ]
* Add unit tests for unity::
* Add/Update tests for gnome session manager.
* Do not allow shutdown when screen is locked. (LP: #1460626)
* Make sure we update the maximized window when "show
desktop"
* Merge patch from https:/
fix.patch (LP: #1491555)
* Merge patch from https:/
override.patch (LP: #1491913)
[ Andrea Azzarone <email address hidden> ]
* Properly hide decorations when on "Show Desktop" mode. (LP:
#1485073)
[ Marco Trevisan (Treviño) ]
* UnityScreen: force shell to be on top when there's a window
fullscreen and we've a menu open. (LP: #591189)
-- Marco Trevisan (Treviño) <mail@3v1n0.net> Thu, 10 Sep 2015 15:37:46 +0000
| Changed in unity (Ubuntu): | |
| status: | In Progress → Fix Released |
| Changed in unity: | |
| status: | In Progress → Fix Committed |
| Changed in unity: | |
| milestone: | none → 7.3.3 |
| assignee: | nobody → Sinclair Yeh (sinclair-yeh) |
| Changed in unity (Ubuntu): | |
| assignee: | nobody → Sinclair Yeh (sinclair-yeh) |
| Changed in unity: | |
| status: | Fix Committed → Fix Released |
| Sinclair Yeh (sinclair-yeh) wrote : | #5 |
Hi, can I request this patch to be backported to 14.04 here or should I file another bug for it?
| tags: | added: trusty |
| Shane Synan (digitalcircuit) wrote : | #6 |
This will cause issues for upgraded Ubuntu installs on Radeon hardware with the upcoming release of 14.04.4 LTS. The version string now includes LLVM, just like in 15.10. On my system, "Gallium 0.4 on AMD BONAIRE" became "Gallium 0.4 on AMD BONAIRE (DRM 2.43.0, LLVM 3.6.0)".
Seconding Sinclair Yeh's request, should this be backported here, or should a new bug be filed?
| Amr Ibrahim (amribrahim1987) wrote : | #7 |
Please backport to Trusty as all users of AMD graphics with radeon drivers and 14.04.4 LTS w/ wily HWE stack are affected.
| Amr Ibrahim (amribrahim1987) wrote : | #8 |
In terminal in an affected 14.04.4 LTS:
:~$ /usr/lib/
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD KAVERI (DRM 2.43.0, LLVM 3.6.0)
OpenGL version string: 3.0 Mesa 11.0.2
Not software rendered: yes
Not blacklisted: yes
GLX fbconfig: yes
GLX texture from pixmap: yes
GL npot or rect textures: yes
GL vertex program: yes
GL fragment program: yes
GL vertex buffer object: yes
GL framebuffer object: yes
GL version is 1.4+: yes
Unity 3D supported: yes
| Amr Ibrahim (amribrahim1987) wrote : | #9 |
Unity is still in low graphics mode after upgrading to 14.04.5 (Xenial HWE stack).
:~$ /usr/lib/
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD KAVERI (DRM 2.43.0, LLVM 3.8.0)
OpenGL version string: 3.0 Mesa 11.2.0
Not software rendered: yes
Not blacklisted: yes
GLX fbconfig: yes
GLX texture from pixmap: yes
GL npot or rect textures: yes
GL vertex program: yes
GL fragment program: yes
GL vertex buffer object: yes
GL framebuffer object: yes
GL version is 1.4+: yes
Unity 3D supported: yes
| Amr Ibrahim (amribrahim1987) wrote : | #10 |
Please backport this fix to Trusty 14.04.


The attachment "LLVM fix" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]