Avoid libwayland when using vulkan

ssmid ssmid at posteo.de
Mon Sep 30 16:25:01 UTC 2024


ssmid (2024-08-07):
> Hi,
>
> I'm trying to combine my own wayland-client implementation with my 
> vulkan renderer but unfortunately vkCreateWaylandSurfaceKHR() depends 
> on libwayland structures.
>
> Is there a way to pass a vulkan image buffer to a wayland compositor 
> without depending on libwayland?
>
> From what I understand, I can implement linux-dmabuf-v1 myself if I 
> can only get my hands on a dmabuf file descriptor like 
> wsi_init_image_dmabuf_fd() does. Is there a stable interface for this 
> (or any other, preferably stable, way to do this) ?
>
> Thanks in advance!
>
Btw, just for the record, the answer is:

- VK_KHR_external_memory_fd
- VK_EXT_external_memory_dma_buf
- VK_EXT_physical_device_drm
- VK_EXT_image_drm_format_modifier

but it's no fun.





More information about the mesa-users mailing list