Bug 104745 - HEVC VDPAU decoding broken on RX 460 with UVD Firmware v1.130
Summary: HEVC VDPAU decoding broken on RX 460 with UVD Firmware v1.130
Status: RESOLVED MOVED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/AMDgpu (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-23 00:12 UTC by saunders.52
Modified: 2018-01-24 13:38 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Reference image of the video glitch. (72.66 KB, image/jpeg)
2018-01-23 00:12 UTC, saunders.52
no flags Details
Software decoded version of the same timestamp in the file. (64.00 KB, image/jpeg)
2018-01-23 00:12 UTC, saunders.52
no flags Details

Description saunders.52 2018-01-23 00:12:10 UTC
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.
Comment 1 saunders.52 2018-01-23 00:12:36 UTC
Created attachment 136912 [details]
Software decoded version of the same timestamp in the file.
Comment 2 saunders.52 2018-01-23 00:37:02 UTC
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.
Comment 3 Alex Deucher 2018-01-23 04:07:04 UTC
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
Comment 4 saunders.52 2018-01-23 04:55:44 UTC
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! :)
Comment 5 Emil Velikov 2018-01-24 13:38:21 UTC
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.