mirror of https://github.com/mpv-player/mpv
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:
parent
a6e13f41eb
commit
2aab3fc381
|
@ -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},
|
||||
|
|
Loading…
Reference in New Issue