• Lynne's avatar
    hwcontext_vulkan: duplicate DMABUF objects before importing them · b31959d7
    Lynne authored
    The specifications are very vague about who has ownership, and in this case,
    Vulkan takes ownership of all DMABUF FDs passed to it, causing errors
    to occur if someone gave us images for mapping which were meant to be kept.
    The old behavior worked with one-way VAAPI and DMABUF imports, but was broken
    with clients like wlroots' dmabuf-capture.
    b31959d7
hwcontext_vulkan.c 97.9 KB