vaapi vp9 decoding glitches on rembrandt [Reproducer in comments]
System information
System:
Host: fedora Kernel: 6.0.17-300.fc37.x86_64 arch: x86_64 bits: 64
compiler: gcc v: 2.38-25.fc37 Desktop: GNOME v: 43.2 tk: GTK v: 3.24.36
wm: gnome-shell dm: GDM Distro: Fedora release 37 (Thirty Seven)
CPU:
Info: 8-core model: AMD Ryzen 7 PRO 6850HS with Radeon Graphics bits: 64
type: MT MCP arch: Zen 3+ rev: 1 cache: L1: 512 KiB L2: 4 MiB L3: 16 MiB
Speed (MHz): avg: 686 high: 2521 min/max: 400/4785 boost: enabled cores:
1: 400 2: 400 3: 1082 4: 400 5: 400 6: 400 7: 400 8: 400 9: 1399 10: 400
11: 400 12: 400 13: 1176 14: 400 15: 2521 16: 400 bogomips: 102210
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
Device-1: AMD Rembrandt [Radeon 680M] vendor: Hewlett-Packard driver: amdgpu
v: kernel arch: RDNA-2 pcie: speed: 16 GT/s lanes: 16 ports: active: eDP-1
empty: DP-1, DP-2, DP-3, DP-4, DP-5, DP-6, DP-7, HDMI-A-1 bus-ID: e3:00.0
chip-ID: 1002:1681 temp: 41.0 C
Device-2: Chicony HP 5MP Camera type: USB driver: uvcvideo bus-ID: 5-1:2
chip-ID: 04f2:b738
Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 22.1.7
compositor: gnome-shell driver: X: loaded: amdgpu
unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu display-ID: 0
Monitor-1: eDP-1 model: AU Optronics 0xa49a res: 1920x1200 dpi: 162
diag: 355mm (14")
API: OpenGL v: 4.6 Mesa 22.3.2 renderer: AMD Radeon Graphics (rembrandt
LLVM 15.0.6 DRM 3.48 6.0.17-300.fc37.x86_64) direct render: Yes
Describe the issue
While playing youtube videos with vaapi enabled, either in firefox or mpv, I see that the video freezes for 2-3 seconds while the audio keeps playing. The video catches up after that and starts playing again. This happens only on the vaapi path (e.g., default Firefox behaviour or mpv --hwdec). It does not happen in chromium or mpv without hwdec. The visual stutter does not cause the 'frames skipped' counter to jump up on youtube in firefox. Nor does it produce any other errors in the mpv log or dmesg. I have seen this on vp9 videos, but I don't know if it affects other encodings.
Reproducer:
mpv --hwdec https://www.youtube.com/watch?v=ZkdP4VZ93F0
This is just some random video on which I see the issue consistently.
Regression
No