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
vaapi doesn't work and Garbled output in vaapi-copy , waylandvk and vulkan (radv driver) #9657
Comments
I don't think |
It works for AMD, log from It's in the logs but I guess I should state I'm using RADV on 21.3.2, as well as a 5700 XT. |
@Dudemanguy , |
Also I think there are two bugs here.
|
Hello , I have uploaded all logs here: https://github.com/gitpubber/problemlog |
@LaserEyess @Dudemanguy , Is there anything I can do ? Any updates on this ? |
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6176 dmabuf modifier support is only available for GFX9+(Vega and RDNA) but RX640 is GFX8(Lexa). |
Yup, so that would explain vaapi not working on his hardware (and mine) on vulkan. The garbled output thing is probably a separate thing but maybe it's related. It's not likely to be an mpv issue in any case. |
can't those patches backported to support GFX8 ? anything can be done from my side(i don't know much driver programming)? i needed my hardware to support it |
If you clicked on the gitlab link, which it looks like you did since you made a comment, you can see that nothing can be done on your side short of buying a new laptop. You'd need to be very knowledgeable of AMD hardware as well as dma-bufs to get it to work on your hardware. Sorry but there's nothing anyone but AMD (or maybe valve) can do here. |
Can someone figure out why |
That's on mesa. |
Important Information
mesa 21.3.2
mesa-vulkan-radeon-21.3.2_1
amdvlk-2021.Q3.7_1
Context
I use ThinkPad E14 with i7-10510u processor which comes with AMD radeon rx 640 GPU discrete GPU . I run sway (v1.6.1) wayland compositor on it . I use
mpv
in sway.Also , I can assure you that same problem persists in both voidlinux and archlinux ( I have tried mesa-git and mpv-git too).
With Intel GPU in sway , hardware acceleration works properly.
And this issue is about problems all regarding amd radeon rx640 .
With amdgpu in sway though, I have two choices for vulkan driver (which works with mesa amdgpu driver) => RADV and amdvlk .
Here are the results of hardware acceleration with amdgpu + radv drivers .
With amdgpu + amdvlk , things are little different ,
Briefly,
vaapi
in amdgpu in both drivers radv/amdvlk in both opengl/vulkan doesn't work inwayland
sway (but vaapi-copy works in few cases that i mentioned above). Is it because my amd radeon rx640 is dedicated GPU ? But ,vaapi,x11egl, opengl
works though ( why?)vaapi-copy , wayland , opengl
works in amdgpu (mesa driver) in sway . It has nothing to do with vulkan. So, this point(2) is not a issue .vaapi-copy , waylandvk , vulkan
in amdgpu+radv shows that vaapi is working . But, it produces garbled output.Screenshot of
vaapi-copy,waylandvk, vulkan , amdgpu+radv
:But, if we use amdvlk instead of radv here , it produces correct output.
Screenshot of
vaapi-copy,waylandvk, vulkan , amdgpu+amdvlk
:I thought it was bug of vulkan implementation in radv. But, if we use
vaapi-copy, displayvk , wayland
it uses wayland vaapi vulkan and displays properly under both radv and amdvlk. So, it might be more related to waylandvk with radv driver. Why displayvk works and why not waylandvk ?vaapi, x11vk, vulkan
doesn't work . It fallbacks to sw rendering. Why doesn't it work(it must display through XWayland)?However
vaapi,x11egl, opengl
,vaapi-copy, x11egl, opengl
andvaapi-copy , x11vk , vulkan
work in Xwayland in sway using amdgpu in both vulkan drivers.How I have run?
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.x86_64.json DRI_PRIME=1 LIBVA_DRIVER_NAME=radeonsi mpv --no-config --hwdec=vaapi --gpu-context=waylandvk --gpu-api=vulkan --vaapi-device=/dev/dri/renderD129 filename
I have changed VK_ICD_FILENAMES to
/usr/share/vulkan/icd.d/amd_icd64.json
if i need to use amdvlk driver( i used to delete this driver when i needed to try radv ) and changed other parameters corresponding to situation.The text was updated successfully, but these errors were encountered: