mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
vaapi: add support for vaapi-win32
Only vaapi-copy variant as nothing can map D3D12 resources currently. And even if we would add resource sharing to D3D11 it would invoke copy at some point, so there is no point really. Maybe in the future when libplacebo get smarter about resource sharing on Windows, but practical advantages are really small. I've tested it with Vulkan <-> D3D11 sharing and GPU <-> GPU copy is still invoked. Better than CPU memcpy, something for the future.
This commit is contained in:
@@ -1401,8 +1401,15 @@ if features['vaapi-x11']
|
||||
sources += files('video/out/vo_vaapi.c')
|
||||
endif
|
||||
|
||||
vaapi_win32 = dependency('libva-win32', required: get_option('vaapi-win32').require(libva.found()))
|
||||
features += {'vaapi-win32': vaapi_win32.found()}
|
||||
if features['vaapi-win32']
|
||||
dependencies += vaapi_win32
|
||||
endif
|
||||
|
||||
vaapi = get_option('vaapi').require(libva.found() and (features['vaapi-drm'] or
|
||||
features['vaapi-wayland'] or features['vaapi-x11']))
|
||||
features['vaapi-wayland'] or features['vaapi-x11'] or
|
||||
features['vaapi-win32']))
|
||||
features += {'vaapi': vaapi.allowed()}
|
||||
|
||||
if features['vaapi']
|
||||
|
||||
Reference in New Issue
Block a user