diff options
author | Niklas Haas <git@haasn.xyz> | 2018-11-10 12:53:33 +0100 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2019-04-21 23:55:22 +0300 |
commit | 7006d6752d7da21870dfdb2b0d7640a3734f748c (patch) | |
tree | 035ca58d22de438e834d212e97b73d03a4248d98 /video/out/gpu | |
parent | 9f7dcc0726ab635fb34fb7310e54b1aec9467f14 (diff) | |
download | mpv-7006d6752d7da21870dfdb2b0d7640a3734f748c.tar.bz2 mpv-7006d6752d7da21870dfdb2b0d7640a3734f748c.tar.xz |
vo_gpu: vulkan: use libplacebo instead
This commit rips out the entire mpv vulkan implementation in favor of
exposing lightweight wrappers on top of libplacebo instead, which
provides much of the same except in a more up-to-date and polished form.
This (finally) unifies the code base between mpv and libplacebo, which
is something I've been hoping to do for a long time.
Note: The ra_pl wrappers are abstract enough from the actual libplacebo
device type that we can in theory re-use them for other devices like
d3d11 or even opengl in the future, so I moved them to a separate
directory for the time being. However, the rest of the code is still
vulkan-specific, so I've kept the "vulkan" naming and file paths, rather
than introducing a new `--gpu-api` type. (Which would have been ended up
with significantly more code duplicaiton)
Plus, the code and functionality is similar enough that for most users
this should just be a straight-up drop-in replacement.
Note: This commit excludes some changes; specifically, the updates to
context_win and hwdec_cuda are deferred to separate commits for
authorship reasons.
Diffstat (limited to 'video/out/gpu')
-rw-r--r-- | video/out/gpu/context.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/video/out/gpu/context.c b/video/out/gpu/context.c index 85f1aa7667..0a46936708 100644 --- a/video/out/gpu/context.c +++ b/video/out/gpu/context.c @@ -50,7 +50,7 @@ extern const struct ra_ctx_fns ra_ctx_vdpauglx; /* Vulkan */ extern const struct ra_ctx_fns ra_ctx_vulkan_wayland; -extern const struct ra_ctx_fns ra_ctx_vulkan_win; +//extern const struct ra_ctx_fns ra_ctx_vulkan_win; extern const struct ra_ctx_fns ra_ctx_vulkan_xlib; /* Direct3D 11 */ @@ -105,9 +105,11 @@ static const struct ra_ctx_fns *contexts[] = { // Vulkan contexts: #if HAVE_VULKAN +/* #if HAVE_WIN32_DESKTOP &ra_ctx_vulkan_win, #endif +*/ #if HAVE_WAYLAND &ra_ctx_vulkan_wayland, #endif |