Skip to content

GL support for dma-buf textures

Matthias Clasen requested to merge dmabuf-texture-gl-no-shaders into main

This MR hooks the various dma-buf APIs up to our GL infrastructure.

We rely on the EXT_EGL_dma_buf_import_modifiers and EXT_EGL_image_storage extensions to query supported dma-buf formats and import dma-bufs as GL textures that can be sampled with GL_TEXTURE_2D.

Note that getting this to work for yuv and nonlinear formats may require significant fixes on the driver side, in mesa.

Merge request reports