-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AMD: Artifacts when playing HEVC videos with vaapi #10681
Comments
Can confirm, I first noticed this on 13th Sep. Might be a recent regression in Mesa or the kernel. vainfo: VA-API version: 1.15 (libva 2.15.0) vainfo: Driver version: Mesa Gallium driver 22.1.7 for AMD Radeon RX 6500 XT (beige_goby, LLVM 14.0.6, DRM 3.47, 5.19.9-arch1-1) [2022-08-28T23:05:45+0200] [ALPM] upgraded mesa (22.1.4-1 -> 22.1.7-1) [2022-08-28T23:05:54+0200] [ALPM] upgraded lib32-mesa (22.1.4-1 -> 22.1.7-1) [2022-08-28T23:05:57+0200] [ALPM] upgraded libva-mesa-driver (22.1.4-1 -> 22.1.7-1) [2022-08-28T23:05:58+0200] [ALPM] upgraded linux (5.18.16.arch1-1 -> 5.19.4.arch1-1) [2022-09-11T20:02:37+0200] [ALPM] upgraded linux (5.19.4.arch1-1 -> 5.19.7.arch1-1) [2022-09-11T20:02:37+0200] [ALPM] upgraded linux-firmware (20220708.be7798e-1 -> 20220815.8413c63-1) |
Just tested with vlc, the issue is present there as well. Upgrading to mesa-git also had no changes. |
I downgraded mesa to 22.1.4 and the kernel to 5.15.70-1-lts and the issue is still present. It's possible I didn't downgrade far enough, the broken commit was backported into the kernel or it's another library that has this bug entirely. |
It's currently working fine on my Steam Deck:
I'd be very surprised if the kernel going from 5.19.5 to 5.19.10 is the issue. The main difference left appears to be libva. Try downgrading to 1.14? |
Oh, I should also point out that I'm using Vulkan. If I try and play back with OpenGL, it's messed up in a different way. No visual artifacts as reported but it seems to show old frames and acts like it is stuttering. Some synchronisation problem. edit: Yeah, OpenGL is a synchronisation diaster. |
I downgraded libva to 2.14.0-1 and libva-mesa-driver to 22.1.2-3 (wouldn't work otherwise) and the issue is still present. |
I might have found the culprit. Removing |
This is an amdgpu firmware regression. https://gitlab.freedesktop.org/mesa/mesa/-/issues/7190 |
lmao, it was not a change to modesetting but an upgrade to linux-firmware. Oh well, since this is fixed with the new linux-firmware then this can be closed. |
Important Information
Provide following Information:
Reproduction steps
I'm not sure if the issue shows up with any hevc vid. Could it be the encode? All videos I've downloaded are HEVC-10bit encoded.
The issue doesn't appear with software decoding (i.e.
mpv --no-config
).Expected behavior
No artifacts showed in hevc video
Actual behavior
Artifacts appear in the upper left hand corner of the screen, any content that touches it also gets artifacts.
H264 videos with vaapi enabled don't present artifacts.
Log file
https://0x0.st/oWVc.txt
Sample files
https://0x0.st/oWVA.mkv
Config file
Vainfo
The text was updated successfully, but these errors were encountered: