Hacker News new | ask | show | jobs
by trissylegs 1881 days ago
There's also the External memory extensions for Vulkan and OpenGL. All the vendors support the Vulkan api. https://vulkan.gpuinfo.org/listdevicescoverage.php?extension...

But not sure about the OpenGL (I think Nvidia do).

These apis let you export a FD for sharing. Pretty sure you can import (scanout compatible) objects into DRI/DRM/KMS. Which is what libgbm does for Mesa drivers.

Although most compositors (including wl_roots based ones) still use libgbm as they might also need to support embedded hardware. (eg: Tizen).

(In the original release of Vulkan intel has a weird "unofficial" extension that let you export a FD. and khr had a VK_cube demo that could directly use KMS with Vulkan using this "extension". This was removed as it was only there to test Vulkan before any window manager integration was implemented)