<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 - [Intel Skylake] [XV] No picture with mplayer and xv output"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94574">94574</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[Intel Skylake] [XV] No picture with mplayer and xv output
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>xorg
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>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>Driver/intel
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>chris@chris-wilson.co.uk
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jan.burgmeier@unicon-software.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=122349" name="attach_122349" title="Output of lspci -vv">attachment 122349</a> <a href="attachment.cgi?id=122349&action=edit" title="Output of lspci -vv">[details]</a></span>
Output of lspci -vv

Hi,

during playback with mplayer and xv output the Xorg log gets spammed with the
following message: "failed to add fb, unable to update video". If drm.debug=6
is actiavted the kernel also outputs: "bad fb modifier 162129721185188224 for
plane 0".

Used software versions:
 - Kernel: 4.4.5
 - Xorg: 1.18.2
 - xf86-video-intel: 2:2.99.917+git20160307
 - libdrm: 2.4.66

I dug a bit deeper and found, that the function sna_video_sprite_show looks
quite equal to get_fb bur without the modifiers handling in the drm struct. I
copied the modifiers pieces aver and video playback started working.

After stopping playback the last frame stays on top and looks like an
'overlay'. It will only close if the surrounding mplayer is closed.

Attached you will find a patch and lspci output.

I'am not familiar with the intel or drm code base so this might or might not be
the correct way of fixing this.

Scaling is also not working with XVideo but as far as I saw this is already a
known issue. If wished I could create a second bug report for it.

Kind regards
Jan Burgmeier</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>