<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>6760</bug_id>
          
          <creation_ts>2014-09-25 10:00:46 +0000</creation_ts>
          <short_desc>i.MX6: not possible to run X11 without tearing / with proper vsync</short_desc>
          <delta_ts>2018-01-18 16:13:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-meta-fsl-arm</component>
          <version>1.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Rafael Giani">crg7475</reporter>
          <assigned_to name="Otavio Salvador">otavio</assigned_to>
          <cc>angolini</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>Satyanarayana.T</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Found by QA test)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>45825</commentid>
    <comment_count>0</comment_count>
      <attachid>2139</attachid>
    <who name="Carlos Rafael Giani">crg7475</who>
    <bug_when>2014-09-25 10:00:46 +0000</bug_when>
    <thetext>Created attachment 2139
HTML example that shows tearing artifacts

It is currently not possible to eliminate tearing in X11 with the i.MX6. The attached HTML example shows a white vertical bar, moving horizontally across the screen, against a black screen. On systems with proper vsync support, the bar stays intact during movement. Without vsync, the bar appears to be torn; one half will be &quot;behind&quot; the other.

The tearing effect is particularly bad with videos and big screens (think &gt;= 1 meter panels). There, the tearing can be so aggravating, it can become a showstopper.

From what I gathered, the X11 output uses single buffering, and adding in vsync required too many hacks. My hope is that for a next release - ideally, 3.10.31 GA - a proper solution might be found.

I know Wayland supports vsync, but X11 is still required sometimes, and Wayland performance on the i.MX6 is still worse than the one X11.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45826</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Rafael Giani">crg7475</who>
    <bug_when>2014-09-25 10:03:07 +0000</bug_when>
    <thetext>Addendum: this happens with all kernel version, all DISTRO_FEATURES (except when you remove x11 from the DISTRO_FEATURES of course), this can be reproduced on any i.MX6 board.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45856</commentid>
    <comment_count>2</comment_count>
    <who name="Daiane">angolini</who>
    <bug_when>2014-09-25 17:17:56 +0000</bug_when>
    <thetext>&quot;i.MX6 X11 EGL is single buffered and there is no support for VSYNC&quot;

&quot;VSYNC support is going to be added in Wayland.
eglSwapInterval will be supported for FBDEV and Wayland backends in the upcoming release. So Ozone-wayland can take advantage of this.&quot;

&quot;export FB_MULTI_BUFFER=2. By doing this server side is VYSNC controlled. The client side support in next release. &quot;

Only to document some points raised during this discussion.

At the point of this report, we are in daisy with kernel 3.10.17-GA, working for 1.7 with 3.10.17-1.0.1-GA and waiting to merge 3.10.31-beta on 1.8 development cycle. (all info reffers to i.MX6 boards only)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47074</commentid>
    <comment_count>3</comment_count>
    <who name="satyanarayana">Satyanarayana.T</who>
    <bug_when>2014-11-18 14:55:06 +0000</bug_when>
    <thetext>Just curious, Is there any way to fix this screen tearing issue on imx6 may be by setting &quot;SyncDraw&quot; setting to false in current source.I tried this but still i see some tear on display.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54953</commentid>
    <comment_count>4</comment_count>
    <who name="satyanarayana">Satyanarayana.T</who>
    <bug_when>2015-10-05 05:10:25 +0000</bug_when>
    <thetext>Any thoughts on, when shall this issue gets fixed in this  processor.This would help us for a better design approach if we can solve screen tearing issue on x11. For complext design like ours which uses both GPU and CPU at time critical scenarios, this turns out to be better option for us to use (x11+GPU) if this really gets resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79144</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-01-18 16:13:44 +0000</bug_when>
    <thetext>This has now become an obsolete/wontfix issue. If anyone is going to actively work on this on maintained releases please reopen and change the targets but I&apos;ll close it given the current inactivity.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>2139</attachid>
            <date>2014-09-25 10:00:46 +0000</date>
            <delta_ts>2014-09-25 10:00:46 +0000</delta_ts>
            <desc>HTML example that shows tearing artifacts</desc>
            <filename>vertical-bar.html</filename>
            <type>text/html</type>
            <size>1107</size>
            <attacher name="Carlos Rafael Giani">crg7475</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KCTxtZXRhIGNoYXJzZXQ9dXRmLTggLz4KCTx0
aXRsZT5WZXJ0aWNhbCBiYXIgdGVzdDwvdGl0bGU+Cgk8c2NyaXB0IHR5cGU9InRleHQvamF2YXNj
cmlwdCIgc3JjPSJodHRwOi8vYWpheC5nb29nbGVhcGlzLmNvbS9hamF4L2xpYnMvanF1ZXJ5LzEu
My4yL2pxdWVyeS5taW4uanMiPjwvc2NyaXB0PgoJPCEtLVtpZiBJRV0+CgkJPHNjcmlwdCBzcmM9
Imh0dHA6Ly9odG1sNXNoaXYuZ29vZ2xlY29kZS5jb20vc3ZuL3RydW5rL2h0bWw1LmpzIj48L3Nj
cmlwdD4KCTwhW2VuZGlmXS0tPgoJPHNjcmlwdCB0eX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