Created attachment 136911 [details] Reference image of the video glitch. When using the new version of the Polaris11 UVD firmware uploaded on 1-19-18 in this commit: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=2a713be25a44bd6cec90d8affc54b246a2ca9c7b on my AMD RX 460 4 GB graphics card, VDPAU decoding for HEVC/h.265 video is broken. The video will frequently glitch out (every 5-10 seconds) in mpv where the same files were playing properly the previous day with the previous firmware version. From a small reference check, other video formats do not seem to be affected (I could check h264 with the files I had on hand). I have attached a sample of one of the affected frames and a near-identical (couldn't find the exact same frame in the video) of a copy with software decoding that is functional. I am using Arch Linux (x86-64) with kernel version 4.14.14.
Created attachment 136912 [details] Software decoded version of the same timestamp in the file.
Oh, info I forgot. Mesa version: 17.3.2 No irregular log entries appeared for the kernel or video player related to this I could find.
This newer firmware exposes a bug in mesa which was fixed in December. You need a newer version of mesa that contains this patch: https://cgit.freedesktop.org/mesa/mesa/commit/?id=2ec48039b8aa1f6a5e16f3f12483b88981d0f5d3
Tried compiling it myself with that patch and it fixes the issue. I've opened a bug on the Arch Linux tracker to get them to apply the patch there, and thanks for the help! :)
Nicely spotted guys. I'll pick Boyuan's VCN/UVD fixed for the next 17.3 release. Feel free to forward future requests to the mesa-stable@ mailing list. I won't be able to catch everything that's said on BZ ;-)
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.