-
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
No vaapi for AMDGPU with libva-git, mesa-git, mpv-build-git from the AUR #5305
Comments
|
Does it work with |
|
You need to patch both libva-git and mesa-git if you want vaapi-egl interop on AMD In libva-git, you need to bump the API version, change the minor version here to 1: https://github.com/01org/libva/blob/master/configure.ac#L30 |
|
@kevmitch No By the way, there is no vaapi-copy either if I bump the VA-API version to 1.1.0 |
|
When will they release libva2.1? Does anybody know? |
|
Is this actually supposed to work at the moment? I have libva from git and patched mesa, ffmpeg, and mpv from git (to remove the VA-API version check, might have been easier to bump the libva version but result is the same), but I only get garbled video display (see below). Hardware decoding does work in principle, but somehow showing the result isn't working out correctly. |
|
If you removed the VA-API version check to force it to work with a version marked as incompatible, you should not be surprised when it doesn't work. |
|
@thebombzen With the current state of things there is no VA-API release or branch for which the version check holds true. Still, the code is there in mesa, ffmpeg, and mpv, because everyone expects |
|
It sounds like something on your system is broken, because the VA-API check works here just fine. |
|
@thebombzen Can you elaborate? What "VA-API check" do you mean? |
|
libva-git now has the correct API version, so I tried the new interface. I can only test Intel for now, and what I can report is that it works correctly. @pkerling try again with an unmodified libva-git/ffmpeg-git/mpv-git and this patch for mesa: https://lists.freedesktop.org/archives/mesa-dev/2017-December/178971.html. If it's still the same, it's a radeon driver bug. |
|
@Gusar321 I tried but it does not change anything, which is unsurprising since the code that runs is effectively the same. Also the patch for mesa is upstream now. And yes, it does work on intel, also for me. But it may not be a bug in mesa either, since it works correctly in Kodi. |
|
I got my hands on an AMD card. It's an older chipset, uses the r600 mesa driver. And well, it works. |
|
Finally found it - I had mesa compiled without |
|
Hi everyone! I upgraded to mpv 0.28.2 and got VAAPI working on Wayland ( But on It's actually refreshing to see something work on Wayland but not X11, usually it's the other way around :D But why would the driver name not return on X11… UPDATE: only happens in Xwayland. Acceleration works in native Xorg |
|
The problem is that Xwayland does not support DRI2, see intel/libva#79 |
|
The VAAPI is still not working for my AMD RX460 in native Xorg ( |
|
I can confirm, that using this config works for me with Mesa 18.3.0 release candidates and AMD Vega 56: I tried using gpu-api=vulkan, but Debian still didn't package shaderc, so I might try building it manually first. What's recommended way to combine Vulkan and vaapi? I suppose EGL isn't relevant for such case? |
|
Yes, EGL isn't relevant, Vulkan has its own WSI (Window System Interface).
|
|
@pkerling The garbled output you see is due to mismatched color surface formats. AMDGPU apparently enabled RGBA-10-10-10-2 and RGB-10-10-10-0, which some applications don't handle properly when dealing with hardware video decoding. |
|
@kode54 Did you read #5305 (comment) ? |
|
Apparently, I was so quick to reply, I didn't read the entire thread. Sorry. |


mpv version and platform
Reproduction steps
Install libva-git, mesa-git, mpv-build-git from AUR
Expected behavior
VAAPI available for AMDGPU
Actual behavior
no vaapi, only vaapi-copy works.
Log file
LOG.log.zip
The text was updated successfully, but these errors were encountered: