diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-09-16 03:46:38 +0100 |
---|---|---|
committer | Niklas Haas <git@haasn.xyz> | 2017-09-26 17:25:35 +0200 |
commit | ed345ffc2f3373743d74a5e0a1dc73c012389273 (patch) | |
tree | 53ac98d49cf09a2d46c476c64fc22ff523de3789 /video/out/gpu/context.c | |
parent | 258487370fd840b018a404225277d74f74899c59 (diff) | |
download | mpv-ed345ffc2f3373743d74a5e0a1dc73c012389273.tar.bz2 mpv-ed345ffc2f3373743d74a5e0a1dc73c012389273.tar.xz |
vo_gpu: vulkan: add support for wayland
Diffstat (limited to 'video/out/gpu/context.c')
-rw-r--r-- | video/out/gpu/context.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/video/out/gpu/context.c b/video/out/gpu/context.c index 69f322c422..22387077d5 100644 --- a/video/out/gpu/context.c +++ b/video/out/gpu/context.c @@ -33,6 +33,7 @@ #include "context.h" #include "spirv.h" +/* OpenGL */ extern const struct ra_ctx_fns ra_ctx_glx; extern const struct ra_ctx_fns ra_ctx_glx_probe; extern const struct ra_ctx_fns ra_ctx_x11_egl; @@ -45,6 +46,9 @@ extern const struct ra_ctx_fns ra_ctx_dxgl; extern const struct ra_ctx_fns ra_ctx_rpi; extern const struct ra_ctx_fns ra_ctx_mali; 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_xlib; static const struct ra_ctx_fns *contexts[] = { @@ -88,9 +92,14 @@ static const struct ra_ctx_fns *contexts[] = { // Vulkan contexts: #if HAVE_VULKAN + +#if HAVE_WAYLAND + &ra_ctx_vulkan_wayland, +#endif #if HAVE_X11 &ra_ctx_vulkan_xlib, #endif + #endif }; |