<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [HSW] [regression] 4.9-rc1 shows corruption with mpv's vaapi-copy"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98402">98402</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[HSW] [regression] 4.9-rc1 shows corruption with mpv's vaapi-copy
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DRI
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>DRI git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DRM/Intel
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>andreas.reis@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=127505" name="attach_127505" title="Screenshot of vaapi-copy video corruption">attachment 127505</a> <a href="attachment.cgi?id=127505&action=edit" title="Screenshot of vaapi-copy video corruption">[details]</a></span>
Screenshot of vaapi-copy video corruption

Since 4.9-rc1 (also drm-intel-nightly) most 8-bit H.264 videos like…

<a href="https://www.youtube.com/watch?v=22jIHfvelZk">https://www.youtube.com/watch?v=22jIHfvelZk</a>
(In particular the max quality video returned eg. by "youtube-dl -f 137".)

… are corrupted as in the screenshot when mpv plays their h.264 versions my
Haswell 4770 & 4200U with 'hwdec=vaapi-copy'. No other configuration (needed)
in mpv.conf.

Unaccelerated 10-bit H.264, H.265, vp9, etc. is unaffected. Also, hwdec=vaapi
still works fine.

(mpv's *-copy brings the video data back to system memory after decoding, eg.
to apply further filters.)

The patterns of corruption are always the same, it appears as if a particular
type of frame causes hiccups.

I'm blaming it on DRM since rebooting into 4.8.3 (Arch vanilla config, same
compiler as for 4.9-rc1, same auto-detected gcc optimizations) and playing it
there with the same software shows no such corruption.

Involved software is all at respective git head – mesa, xserver,
xf86-video-intel, ffmpeg, libva, libva-intel-driver, mpv. gcc is version 6.2.1
20161006.</pre>
        </div>
      </p>


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

      <ul>
          <li>You are on the CC list for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>