Comment 5 for bug 1216781

Revision history for this message
Bin Li (binli) wrote :

After work with Ning and Shuoduo, I found the root cause is that blacklist_precise_mesa80_intel_nouveau.patch (bug 1167321).
Not the fix_1095001.patch (bug#1095001) which in comment#15.

blacklist_precise_mesa80_intel_nouveau.patch
===============================================================
 This patch sets the correct 12.04 LTS (precise) specific blacklist
 string for not enabling unredirection speedup on older Mesa versions
 when using Intel or Nouveau. It has evolved a bit.
 .
 Firstly it was just a cherry-pick to remove double backslashes which
 turned out not to work well from XML -> regexp engine.
 .
 Secondly "9.0" was added because an user reported that Mesa 9.0 from
 x-updates PPA wasn't enough on Intel. The full 12.04.2 stack however is
 good.
 .
 Thirdly as continuation from above, the string was modified so that
 9.0 (sharp) is still blacklisted, but 9.0.x (now in 12.04.2 LTS stack)
 is not anymore. This takes care of the remaining PPA users while allowing
 proper new stack users to have full gaming speed on Intel and Nouveau.

--- a/plugins/opengl/opengl.xml.in 2012-12-12 07:24:34 +0000
+++ b/plugins/opengl/opengl.xml.in 2012-12-17 10:39:15 +0000
@@ -46,7 +46,7 @@
        <option name="unredirect_driver_blacklist" type="string">
        <_short>Unredirect Driver Blacklist</_short>
        <_long>If non-empty, specifies a POSIX (extended) regular expression to match against the OpenGL driver strings (newline separated): "GL_VENDOR\nGL_RENDERER\nGL_VERSION". If the regular expression matches a substring of that concatenation then no windows will ever be unredirected while using that particular graphics driver.</_long>
- <default>(nouveau|Intel).*Mesa 8\\.0</default>
+ <default>(nouveau|Intel).*Mesa (8.0|9.0$)</default>
        </option>
    </options>
     </plugin>
===============================================================
The previous version is (nouveau|Intel).*Mesa (8.0|9.0) in default.

When we edit the /usr/share/compiz/opengl.xml, and remove the '$', it will fix this issue.