Skip to content

vd_lavc: prefer Vulkan hwdec when available #16199

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

Merged
merged 1 commit into from
Apr 13, 2025

Conversation

kasper93
Copy link
Member

@kasper93 kasper93 commented Apr 7, 2025

If Vulkan hwdec is exposed by the system, use this as it provides better compatibility with native Vulkan rendering.

This avoid issues with importing VkImages through DMABUF interop from nvdec or vaapi on drivers that doesn't support DMABUF.

Try native Vulkan hwdec first which will resolve compatibility issues if available. If not it will fallback to using vaapi/nvdec like before.

If Vulkan rendering is not used it will also fallback to other hwdec options.

@kasper93
Copy link
Member Author

kasper93 commented Apr 7, 2025

Should fix all NVIDIA interop issues as seen in #16189

If Vulkan hwdec is exposed by the system, use this as it provides better
compatibility with native Vulkan rendering.

This avoid issues with importing VkImages through DMABUF interop from
nvdec or vaapi on drivers that doesn't support DMABUF.

Try native Vulkan hwdec first which will resolve compatibility issues if
available. If not it will fallback to using vaapi/nvdec like before.
@kasper93 kasper93 merged commit cc02a47 into mpv-player:master Apr 13, 2025
22 of 25 checks passed
@kasper93 kasper93 deleted the fix_vulkan_hwdec branch April 13, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants