Status of Linux dma_buf support

As it stands, all of the extensions are advertised. Some of the related APIs seem to work. eglExportDMABUFImageMESA() does not work in any example I’ve found, which is the key to the whole thing.

Example: qemu (6.2 or 7.0 branch) with “-spice gl=on,…” for paravirtualized GPU displayed in spice client window.
Example: Blaž Tomažič / DMA-BUF texture sharing · GitLab
Example: GitHub - hikiko/shctx: EGL/ES2 experiments branch: “wip/egl-to-egl-dma-exchange-working”

In all cases eglExportDMABUFImageMESA() returns EGL_BAD_MATCH

eglQueryDmaBufFormatsEXT() says the format (XB24 & AB24) are supported… if they are not supported they should be removed.

Drivers I have tried are latest 470 and 510.

Extensions:
EGL_MESA_image_dma_buf_export
EGL_EXT_image_dma_buf_import
EGL_EXT_image_dma_buf_import_modifiers

Related APIs
eglCreateImage
eglQueryDmaBufFormatsEXT
eglExportDMABUFImageQueryMESA
eglExportDMABUFImageMESA

Update: it was not working because modeset was disabled (it is disabled by default). Can we please get an indication of this requirement either by disabling the extensions or some logging?