Merge lp:~timo-jyrinki/compiz/blacklist_remove_double_escape_from_xml into lp:compiz/0.9.9

Proposed by Timo Jyrinki
Status: Rejected
Rejected by: Timo Jyrinki
Proposed branch: lp:~timo-jyrinki/compiz/blacklist_remove_double_escape_from_xml
Merge into: lp:compiz/0.9.9
Diff against target: 12 lines (+1/-1)
1 file modified
plugins/opengl/opengl.xml.in (+1/-1)
To merge this branch: bzr merge lp:~timo-jyrinki/compiz/blacklist_remove_double_escape_from_xml
Reviewer Review Type Date Requested Status
Compiz Maintainers Pending
Review via email: mp+140139@code.launchpad.net

Commit message

Remove double escaping ('\\.') from the XML unredirect_driver_blacklist default. (LP: #1091103)

Description of the change

Remove double escaping ('\\.') from the XML unredirect_driver_blacklist default. (LP: #1091103)

It's there in the test code when it's inside C code, but in XML it shouldn't be double escaped?

Unredirection can be tested by getting enough options set in a specific way and a non-vsyncing video player, then opening a tearing test http://www.youtube.com/watch?v=ZCPkOpMHB7g. If unredirect works, tearing is visible.

Tested on AMD Radeon 6670 on precise (where the blacklist is meant to have its only effect) hardware with the string (nouveau|AMD).*Mesa 8\\.0 vs. (nouveau|AMD).*Mesa 8\.0 - with the former the blacklist doesn't disable unredirecting, with the latter it does. Presumptions on AMD hardware are that unredirect_fullscreen_windows is true, unredirect_match is set to '(any)' instead of the default (since the default disables unredirection for common non-vsyncing video players). Additionally the video needs to be downloaded to a player that can use x11/xshm output instead of Xv, since Xv video is automatically vsynced on AMD.

Tested on Intel hardware with the default string vs. the new default (nouveau|Intel).*Mesa 8\.0. Behaves as expected, and youtube can be used on Intel since Intel driver doesn't support tear-free on non-composited Xv output. unredirect_fullscreen_windows should be true, unredirect_match '(any)'. With the double escape removed, blacklist works and disables unredirection on Intel.

To post a comment you must log in.
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

The proposed change results in a build failure (opengl_options.cpp:48:80: error: unknown escape sequence: '\.' [-Werror]), even though if user set it works fine.

Unless other suggestions appear, working on a replacement that removes the escaping altogether from both the xml file and the tests, even though that's of course 'any character' then instead of a dot. There are not many "Mesa 8[anycharacter]0":s other than "Mesa 8.0" in the strings, though.

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

Unmerged revisions

3531. By Timo Jyrinki

Remove double escaping ('\\.') from the XML unredirect_driver_blacklist default. (LP: #1091103)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/opengl/opengl.xml.in'
2--- plugins/opengl/opengl.xml.in 2012-12-12 07:24:34 +0000
3+++ plugins/opengl/opengl.xml.in 2012-12-17 06:56:21 +0000
4@@ -62,7 +62,7 @@
5 <option name="unredirect_driver_blacklist" type="string">
6 <_short>Unredirect Driver Blacklist</_short>
7 <_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>
8- <default>(nouveau|Intel).*Mesa 8\\.0</default>
9+ <default>(nouveau|Intel).*Mesa 8\.0</default>
10 </option>
11 </options>
12 </plugin>

Subscribers

People subscribed via source and target branches