mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-25 12:20:20 +00:00
vd_lavc: add Vulkan hardware decoding to autoprobe
On platforms where it is unstable/experimental, it is disabled behind environmental variable, so safe to probe it there too. Fixes usage of hwdec=yes with gpu-api=vulkan, where hwdec would be not enabled. Position it after older and more stable variants. That means the -copy variant of the other API will likely be prefered.
This commit is contained in:
@@ -245,6 +245,8 @@ const struct autoprobe_info hwdec_autoprobe_info[] = {
|
||||
{"nvdec-copy", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
|
||||
{"vaapi", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
|
||||
{"vaapi-copy", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
|
||||
{"vulkan", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
|
||||
{"vulkan-copy", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
|
||||
{"vdpau", HWDEC_FLAG_AUTO},
|
||||
{"vdpau-copy", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
|
||||
{"drm", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
|
||||
|
||||
Reference in New Issue
Block a user