1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-25 00:53:22 +00:00
mpv/video
Philip Langdale 93f800a00f vo_gpu: vulkan: Add support for exporting buffer memory
The CUDA/Vulkan interop works on the basis of memory being exported
from Vulkan and then imported by CUDA. To enable this, we add a way
to declare a buffer as being intended for export, and then add a
function to do the export.

For now, we support the fd and Handle based exports on Linux and
Windows respectively. There are others, which we can support when
a need arises.

Also note that this is just for exporting buffers, rather than
textures (VkImages). Image import on the CUDA side is supposed to
work, but it is currently buggy and waiting for a new driver release.

Finally, at least with my nvidia hardware and drivers, everything
seems to work even if we don't initialise the buffer with the right
exportability options. Nevertheless I'm enforcing it so that we're
following the spec.
2018-10-22 21:35:48 +02:00
..
decode vd_lavc: minor simplification for get_format fallback 2018-05-25 10:17:06 +02:00
filter vf_vapoursynth: correctly signal error on script init failure 2018-04-29 02:21:32 +03:00
out vo_gpu: vulkan: Add support for exporting buffer memory 2018-10-22 21:35:48 +02:00
csputils.c
csputils.h
d3d.c video: rewrite filtering glue code 2018-01-30 03:10:27 -08:00
d3d.h
fmt-conversion.c vo_gpu: make screenshots use the GL renderer 2018-02-11 17:45:51 -08:00
fmt-conversion.h
hwdec.c video: rewrite filtering glue code 2018-01-30 03:10:27 -08:00
hwdec.h video: rewrite filtering glue code 2018-01-30 03:10:27 -08:00
image_loader.c
image_loader.h
image_writer.c vo_gpu: make screenshots use the GL renderer 2018-02-11 17:45:51 -08:00
image_writer.h vo_gpu: make screenshots use the GL renderer 2018-02-11 17:45:51 -08:00
img_format.c video: remove libavutil PSEUDOPAL stuff 2018-04-03 20:08:15 +03:00
img_format.h img_format.h: cosmetics: fix whitespace 2018-03-15 23:13:53 -07:00
mp_image_pool.c
mp_image_pool.h
mp_image.c mp_image: strip all HDR peak information from SDR clips 2018-09-05 22:09:30 +02:00
mp_image.h video: remove internal stereo_out flag 2018-04-29 02:21:32 +03:00
sws_utils.c
sws_utils.h
vaapi.c vaapi: add option to select a non-default device path 2018-03-30 14:16:07 -07:00
vaapi.h
vdpau_functions.inc
vdpau_mixer.c
vdpau_mixer.h
vdpau.c
vdpau.h