<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 - Wayland Weston & Sway - vsync stutters in mpv on Intel graphics"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=112351">112351</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Wayland Weston & Sway - vsync stutters in mpv on Intel graphics
          </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>not set
          </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>tempel.julian@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=146003" name="attach_146003" title="dmesg log of the test system">attachment 146003</a> <a href="attachment.cgi?id=146003&action=edit" title="dmesg log of the test system">[details]</a></span>
dmesg log of the test system

Originally reported here, but posting here in case it might be a kernel issue:
<a href="https://gitlab.freedesktop.org/mesa/mesa/issues/2048">https://gitlab.freedesktop.org/mesa/mesa/issues/2048</a>

The issue: Stutter free video playback is not possible on Gemini Lake with
Wayland compositors.

To reproduce, run mpv 0.30 via
"mpv --no-config --video-sync=display-resample --hwdec=vaapi
<a href="http://www.oc-burner.de/ftp/Videos/juddertest/juddertest_60.mp4">http://www.oc-burner.de/ftp/Videos/juddertest/juddertest_60.mp4</a>" 

on a ~60Hz display in a Weston or Sway Wayland session (mpv automatically uses
native Wayland windowing, no xwayland involved). There is stutter each few
seconds, thus mpv's statistics recognize vsync jitter spikes and in the wake
mistimed or delayed frames (either watch mpv's terminal output or enable LUA
stats via Shift + i).

There is no stutter with xf86-video-intel DDX on Xserver (also not in
fullscreen with pageflipping triggered). There is also no stutter with AMD GPU
on Wayland, so the root of the issue should not lie in mpv.
modesetting DDX on Xserver shows a very similar (if not exactly the same?)
issue as Wayland with Intel graphics, if that's important. Though there
probably is xf86-video-intel for a good reason, so perhaps the Wayland
situation is more deserving of attention.

Issue also ocurs with --hwdec=vaapi-copy, which uses the same windowing context
as software decoding.

Tested on
Arch Linux / Manjaro 5.3.8
xorg 1.20.5-4 from Arch/Manjaro repo
Weston 7.0.0
recent sway-git/wlroots-git which supports correct vsync presentation feedback

Attaching a dmesg log of the test system.</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>