<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 Video Driver V2.99.917 Does not support multiple video playback using XVideo on Skylake"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94559">94559</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Intel Video Driver V2.99.917 Does not support multiple video playback using XVideo on Skylake
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86 (IA32)
          </td>
        </tr>

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

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

        <tr>
          <th>Severity</th>
          <td>critical
          </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>ibr@wegener.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>Hello.

We have run into a issue with the XV implementation on Skylake using the intel
video driver V2.99.917. 

Looking at the source we found Skylake processors are initialised with a
generic SNA backend.

This causes video related setup to baseline, yielding only a single video
sprite adapter and port.

Playing more than one video with the X Video extension (XV) will then fail
because the video player cannot grab an available port.

XV is a pretty core part of doing video on the X Windows system. On older
hardware such as Haswell, a textured video adapter and many ports are
initialized by the driver, and thus Haswell does not have this limitation.

Tests to reproduce the XV Bug on a Intel Skylake G4400 or I5-6400 with Intel
Driver 2.99.917

Try play more than one instance of video using the XV backend:

Gstreamer:

gst-launch-1.0 filesrc location=testvideo.mp4 ! decodebin ! xvimagesink

MPV

mpv --hwdec=vaapi -vo=xv testvideo.mp4


Printout of XV

X-Video Extension version 2.2

screen #0

  Adaptor #0: "Intel(R) Video Sprite"

    number of ports: 1

    port base: 75

    operations supported: PutImage

    supported visuals:

      depth 24, visualID 0x20

    number of attributes: 2

      "XV_COLORKEY" (range 0 to 16777215)

              client settable attribute

              client gettable attribute (current value is 66046)

      "XV_ALWAYS_ON_TOP" (range 0 to 1)

              client settable attribute

              client gettable attribute (current value is 0)

    maximum XvImage size: 8192 x 8192

    Number of image formats: 3

      id: 0x32595559 (YUY2)

        guid: 59555932-0000-0010-8000-00aa00389b71

        bits per pixel: 16

        number of planes: 1

        type: YUV (packed)

      id: 0x59565955 (UYVY)

        guid: 55595659-0000-0010-8000-00aa00389b71

        bits per pixel: 16

        number of planes: 1

        type: YUV (packed)

      id: 0x18424752

        guid: 50415353-5448-524f-5547-485247423234

        bits per pixel: 32

        number of planes: 1

        type: RGB (packed)

        depth: 24

        red, green, blue masks: 0xff0000, 0xff00, 0xff

This particular bug is having a seriously negative impact on UP Stream
Packages.
There have been distribution packages incorporating patches to disable loading
the Intel driver plus SNA in favour of GLAMOR and some kind of more generic
mode setting driver built into X.Org; GLAMOR currently has it's own issues.

Both

Red Hat: <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1305369">https://bugzilla.redhat.com/show_bug.cgi?id=1305369</a>

Debian following suite:
<a href="http://anonscm.debian.org/cgit/pkg-xorg/driver/xserver-xorg-video-intel.git/commit/?id=e43d5b2191c5d9695e29ad2f5ac16c15dc1d9543">http://anonscm.debian.org/cgit/pkg-xorg/driver/xserver-xorg-video-intel.git/commit/?id=e43d5b2191c5d9695e29ad2f5ac16c15dc1d9543</a>

Have tried to skirt the issue with the Intel XV implementation in favor of
Glamor but on Skylake (Gen 9) Glamor does not offer the same level of
capabilities as Intel SNA on previous chipsets (e.g. Gen 8 and Gen 7).

Thanks Paul</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>