-
Notifications
You must be signed in to change notification settings - Fork 3k
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
hwdec=vulkan with RADV still not working on my system #14680
Comments
If it hangs your kernel, it almost certainly sounds like a driver bug. I doubt AMD will care about a 9 year old GPU though, but it's still worth reporting. |
Could you try with older Linux kernel? Curious to see if that's a regression. Either way, probably not a mpv/ffmpeg issue, so you would be better off the report it upstream.
If the issue is in common code somewhere, still would be nice to get fixed, though surly harder to get attention to such issue. |
I've been occasionally trying to see if it works over the course of the last year, probably since this event: The result was always the same. The kernel version at that time was Meanwhile, VAAPI has been working fine but curiously broke recently, probably when ffmpeg 7.0 arrived in Debian testing, but I have yet to confirm for sure. Working fine in gstreamer though. Anyway, this is probably a separate issue. |
Report it here https://gitlab.freedesktop.org/drm/amd/-/issues/ |
What he says. Also test with ffmpeg directly to minimize testcase. This is how you would normally test it:
|
Thank you for the suggestion. Basically, the issue presents with ffmpeg as well. First try: I got no errors from ffmpeg or dmesg, but there was flickering artifacts on my screen and some desktop elements (icons and such) were not showing properly afterwards. Second try: My desktop was completely garbled and unresponsive. I could ssh into the machine from my mobile but it did not respond to my reboot command so I had to reach for the physical reset button. |
My guess is that there were probably messages in dmesg about a gpu reset, which your compositor tried to recover from but didn't properly. So on the second reset it dies completely. Are you on Wayland or X11? |
Wayland. Edit: Tried X11 as well. Roughly having the same issues, just different looking artifacts, and at first it didn't hang completely but eventually it did anyway. |
Reported here: |
This is slightly off topic as it is a separate issue, but you were on to something there I think. I mentioned VAAPI also broke quite recently but I found that it works if I boot into my fallback kernel which is 6.9. It's broken in 6.10. The main topic (Vulkan Video) is different though. It's been broken on my end since it became publicly available. I've been testing it every now and then but I just didn't have the energy to report it back then. VAAPI issue is possibly related to this: https://gitlab.freedesktop.org/drm/amd/-/issues/3565 |
As it is recent regression hopefully it will get more attention, but at the same time there are issues that are lingering in recent kernel revisions, so ymmv. |
VAAPI issue seems to have resolved with a recent kernel update (6.10.3->6.10.4) |
By the way, hwdec=vulkan causes unstable refresh rate on my adaptive sync monitor. |
Can confirm that Kernel 6.10.4 indeed fixed the VAAPI issue on your end? Kernel 6.10.4 and above trashed the VAAPI acceleration on my end. Playback fails with an error message in dmesg:
On previous kernels (6.10.x) I occasionally had artifacts and observed general instability. On LTS kernel (6.6.47-1-lts) it seems all good. Kernel 6.9.9 was also ok. I have x11 xfce, AMDGPU driver, ATI FirePro W5000 (South Island Graphics Core Next 1 (GCN1); essentially AMD HD7000 series), Arch linux. |
Just tried again and the situation seems slightly improved but not entirely. big_buck_bunny_1080p_h264.mov now works with Vulkan Video Decode on my system, as does some h265 videos, including those recorded on my Samsung S10 mobile phone. Other h264 files still not working with the exact same symptoms as before. Don't know what causes it, and I don't know what changed to make some files suddenly work properly. In short, some of those which previously had garbled video output now seems to work. Others still have garbled video. Those previously without video output and only error messages and crashes are still broken, but I didn't get any kernel panics, rather it was only error messages and mpv freezing sometimes. Currently on mesa 24.2.2-1 and kernel 6.10.9-1 |
The |
I've noticed, and I've seen your report here: #14697 |
mpv Information
Other Information
"Debian GNU/Linux trixie/sid"
Linux debian-desktop 6.10.3-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.10.3-1 (2024-08-04) x86_64 GNU/Linux
[AMD/ATI] Fiji [Radeon R9 FURY / NANO Series] [1002:7300] (rev cb)
Mesa 24.1.6-1
(Also tested 24.2.rc4)Reproduction Steps
RADV_PERFTEST=video_decode mpv --no-config --vo=gpu-next --gpu-api=vulkan --hwdec=vulkan --gpu-context=waylandvk
Expected Behavior
Video playback with no issues and Vulkan Video hardware accelerated decoding
Actual Behavior
Depends on whether video is h264 or h265, but neither is working properly. Sometimes system completely hangs (kernel panic?).
h264:
No video output and error messages printed to console and dmesg, although some files produce garbled video output including big_buck_bunny_1080p_h264.mov.
mpv console output: https://gist.github.com/Brisse89/93eaa4d3a0a00e2fe9084ef496188e1a
dmesg:
[ 6394.783530] amdgpu 0000:09:00.0: amdgpu: Disabling VM faults because of PRT request! [ 7369.984141] [drm:amdgpu_uvd_cs_pass2 [amdgpu]] *ERROR* )Handle 0x48780001 already in use!
h265:
There's garbled video output and error messages printed to console and dmesg
Log File
output.txt
Sample Files
https://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_1080p_h264.mov
I carefully read all instruction and confirm that I did the following:
--log-file=output.txt
.The text was updated successfully, but these errors were encountered: