<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:nw9165-3201@yahoo.com" title="nw9165-3201@yahoo.com">nw9165-3201@yahoo.com</a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - TearFree breaks when playing back videos in Firefox with GPU accelerated windows enabled in Firefox"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=96847">bug 96847</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>Michael@phoronix.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - TearFree breaks when playing back videos in Firefox with GPU accelerated windows enabled in Firefox"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=96847#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - TearFree breaks when playing back videos in Firefox with GPU accelerated windows enabled in Firefox"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=96847">bug 96847</a>
              from <span class="vcard"><a class="email" href="mailto:nw9165-3201@yahoo.com" title="nw9165-3201@yahoo.com">nw9165-3201@yahoo.com</a>
</span></b>
        <pre>(In reply to Chris Wilson from <a href="show_bug.cgi?id=96847#c5">comment #5</a>)
<span class="quote">> Absolutely, since I wrote the code, I had to explicitly disable TearFree
> when PresentPixmap is called because a client calling PresentPixmap can then
> treat that Pixmap as a front buffer and directly render into it bypassing X.</span >

Maybe it should be noted in the man page then?

<span class="quote">> > By the way, if you want to reproduce the issue:
> > 
> > As far as I can tell, the issue is triggered by switching the YouTube video
> > player to fullscreen.

> Worksforme.</span >

Have you set "layers.acceleration.force-enabled" to "true" in about:config
(<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=594876">https://bugzilla.mozilla.org/show_bug.cgi?id=594876</a>) in Firefox?

You need to enable it to trigger the issue. I just recently came across this
setting ("layers.acceleration.force-enabled"), and when I enabled it, I noticed
that TearFree breakup. Setting "layers.acceleration.force-enabled" to "true"
results in a much better Firefox performance, especially on videos.

By the way, when the issue occurs, the video doesn't tear. But when moving
windows around on the screen, you can notice some tearing on the windows, which
usually is not there.

<span class="quote">> Who said that DRI3 was meant to provide a TearFree experience? That's not
> what we put together in the specification or the code. Also note that DRI3
> *cannot* provide TearFree updates in a variety of configurations</span >

But could you please explain to me why DRI=3 + TearFree=False is resulting in
tearing, whereas DRI=3 + TearFree=True is resulting in no tearing? Surely
TearFree must be doing something in that case?

<span class="quote">> and due to
> many limitations in the current implementation is often inferior to DRI2
> (such as multi-monitor rendering).</span >

Hm, yet even Intel has DRI3 enabled by default in Clear Linux and it also
appears to provide better performance:

<a href="http://www.phoronix.com/scan.php?page=article&item=clear-ubuntu-fedxf&num=1">http://www.phoronix.com/scan.php?page=article&item=clear-ubuntu-fedxf&num=1</a>
<a href="http://www.phoronix.com/scan.php?page=article&item=intel-skylake-dri3&num=1">http://www.phoronix.com/scan.php?page=article&item=intel-skylake-dri3&num=1</a>
<a href="http://www.phoronix.com/scan.php?page=news_item&px=DRI3-Xubuntu-16.04-Extra">http://www.phoronix.com/scan.php?page=news_item&px=DRI3-Xubuntu-16.04-Extra</a>

Regards</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>