[radeonsi/vaapi] Video distortion with H.264 in Firefox
When playing an H.264 encoded video in Firefox with vaapi enabled, there is a distortion that occurs at the bottom of the video (like a stripe of vertically repeated pixels).
I tested it on this example:
https://mirrors.dotsrc.org/blender/blender-demo/movies/BBB/bbb_sunflower_1080p_60fps_normal.mp4
See this screenshot which demonstrates distortion on the bottom:
- This happens both with Mesa main and Mesa 22.0.0.
- Using Firefox 99.0b3 (Mozilla build) on Debian testing.
- GPU: Sapphire Pulse RX 6800 XT.
Latest VCN firmware from upstream kernel repo.
From dmesg:
[ 4.612872] [drm] Found VCN firmware Version ENC: 1.18 DEC: 2 VEP: 0 Revision: 14
Notes:
- To enable VAAPI in Firefox you currently need to set this env variable
MOZ_DISABLE_RDD_SANDBOX=1
and in about:config
media.ffmpeg.vaapi.enabled = true
- I couldn't reproduce this problem in mpv using VAAPI and the same video .