<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Tearing on a Weston window even with FB_MULTI_BUFFER set as 2 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Tearing-on-a-Weston-window-even-with-FB-MULTI-BUFFER-set-as-2/m-p/473128#M74891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/richard.rojfors@gmail.com"&gt;richard.rojfors@gmail.com&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For clarification, the issue you are seeing is on 3.14.28 and Weston 1.6.0&lt;/P&gt;&lt;P&gt;I am preparing an appropiate Yocto image, as mine does not have the imxeglvivsink element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Hugo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jan 2016 00:32:05 GMT</pubDate>
    <dc:creator>HugoOsornio</dc:creator>
    <dc:date>2016-01-14T00:32:05Z</dc:date>
    <item>
      <title>Tearing on a Weston window even with FB_MULTI_BUFFER set as 2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Tearing-on-a-Weston-window-even-with-FB-MULTI-BUFFER-set-as-2/m-p/473125#M74888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A customer reported that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I run with very few surfaces and for instance gstreamer like this: (I have an own shell, without any other views).&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 15px;"&gt;gst-launch-1.0 videotestsrc ! imxeglvivsink&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 15px;"&gt;&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 15px;"&gt;I get tearing and it seems like the opengl part is not finished with the buffer even though commit is called. (surface_commit in compositor.c)&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 15px;"&gt;&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 15px;"&gt;If a put a small usleep in the gal2d-renderer, for instance in repaint_views, like 15ms, then the tearing disappears and it looks fine.&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 15px;"&gt;&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 15px;"&gt;So it really looks like the egl surface either not double buffering or commit is not syncronised.&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 15px;"&gt;&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 15px;"&gt;Is that something that's known, maybe you have a work around?&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 15px;"&gt;&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 15px;"&gt;I run weston with double buffering (FB_MULTI_BUFFER=2)&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 15px;"&gt;&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 15px;"&gt;This is not visible with the standard shell of weston, I think that is because it has quite a few views that are drawn before the gstreamer surface...&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 15px;"&gt;&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 15px;"&gt;I will take care of the issue but will use a community thread to keep a public accessible resolution.&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 15px;"&gt;&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 15px;"&gt;Cheers,&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 15px;"&gt;Hugo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 21:03:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Tearing-on-a-Weston-window-even-with-FB-MULTI-BUFFER-set-as-2/m-p/473125#M74888</guid>
      <dc:creator>HugoOsornio</dc:creator>
      <dc:date>2016-01-07T21:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Tearing on a Weston window even with FB_MULTI_BUFFER set as 2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Tearing-on-a-Weston-window-even-with-FB-MULTI-BUFFER-set-as-2/m-p/473126#M74889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;A way to reproduce the issue with desktop-shell;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;First apply this patch&amp;nbsp; (tell mapped windows to scale up and be put att 0x0, which will be the gst-window).&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;DIV&gt;--- a/desktop-shell/shell.c 2016-01-12 15:51:44.000000000 +0100&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+++ b/desktop-shell/shell.c 2016-01-12 15:51:49.000000000 +0100&lt;/P&gt;&lt;P&gt;@@ -5516,9 +5516,9 @@&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (range_y &amp;gt; 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp; dy += random() % range_y;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- x = target_output-&amp;gt;x + dx;&lt;/P&gt;&lt;P&gt;- y = target_output-&amp;gt;y + dy;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;+ /* ---- CHANGE: set to 0,0 on the output*/&lt;/P&gt;&lt;P&gt;+ x = target_output-&amp;gt;x;&lt;/P&gt;&lt;P&gt;+ y = target_output-&amp;gt;y;&lt;/P&gt;&lt;P&gt;&amp;nbsp; weston_view_set_position(view, x, y);&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@@ -5625,6 +5625,11 @@&lt;/P&gt;&lt;P&gt;&amp;nbsp; break;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;+ if (shsurf-&amp;gt;resource)&lt;/P&gt;&lt;P&gt;+ wl_shell_surface_send_configure(shsurf-&amp;gt;resource,&lt;/P&gt;&lt;P&gt;+ WL_SHELL_SURFACE_RESIZE_NONE,&lt;/P&gt;&lt;P&gt;+ shsurf-&amp;gt;output-&amp;gt;width, shsurf-&amp;gt;output-&amp;gt;height);&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; static void&lt;/P&gt;&lt;/DIV&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Start weston (fb0 is HDMI@1920x1080):&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;FB_MULTI_BUFFER=2 XDG_RUNTIME_DIR=/tmp /usr/bin/weston --tty=1 --use-gal2d=1 --use-gl=0 --device=/dev/fb0&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Start gstreamer:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;XDG_RUNTIME_DIR=/&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;tmp gst-launch-1.0 videotestsrc ! imxeglvivsink&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Now you will see the tearing..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 15:08:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Tearing-on-a-Weston-window-even-with-FB-MULTI-BUFFER-set-as-2/m-p/473126#M74889</guid>
      <dc:creator>richard_rojfors</dc:creator>
      <dc:date>2016-01-13T15:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Tearing on a Weston window even with FB_MULTI_BUFFER set as 2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Tearing-on-a-Weston-window-even-with-FB-MULTI-BUFFER-set-as-2/m-p/473127#M74890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/richard.rojfors@gmail.com"&gt;richard.rojfors@gmail.com&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for the reproduction steps Richard.&lt;/P&gt;&lt;P&gt;I am working to reproduce this as we speak on the 3.14.52 BSP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Hugo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 22:27:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Tearing-on-a-Weston-window-even-with-FB-MULTI-BUFFER-set-as-2/m-p/473127#M74890</guid>
      <dc:creator>HugoOsornio</dc:creator>
      <dc:date>2016-01-13T22:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Tearing on a Weston window even with FB_MULTI_BUFFER set as 2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Tearing-on-a-Weston-window-even-with-FB-MULTI-BUFFER-set-as-2/m-p/473128#M74891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/richard.rojfors@gmail.com"&gt;richard.rojfors@gmail.com&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For clarification, the issue you are seeing is on 3.14.28 and Weston 1.6.0&lt;/P&gt;&lt;P&gt;I am preparing an appropiate Yocto image, as mine does not have the imxeglvivsink element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Hugo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2016 00:32:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Tearing-on-a-Weston-window-even-with-FB-MULTI-BUFFER-set-as-2/m-p/473128#M74891</guid>
      <dc:creator>HugoOsornio</dc:creator>
      <dc:date>2016-01-14T00:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Tearing on a Weston window even with FB_MULTI_BUFFER set as 2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Tearing-on-a-Weston-window-even-with-FB-MULTI-BUFFER-set-as-2/m-p/473129#M74892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is with weston 1.8.0, all based on the jethro branch of yocto. The kernel is a .28, but the gfx driver is picked up from the meta-fsl-arm, so matching p7.1, which I guess is in your .38 kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2016 07:05:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Tearing-on-a-Weston-window-even-with-FB-MULTI-BUFFER-set-as-2/m-p/473129#M74892</guid>
      <dc:creator>richard_rojfors</dc:creator>
      <dc:date>2016-01-14T07:05:51Z</dc:date>
    </item>
  </channel>
</rss>

