swaywm / wlroots

A modular Wayland compositor library
https://gitlab.freedesktop.org/wlroots/wlroots/
MIT License
2.15k stars 343 forks source link

Remove hardcoded list of DMA-BUF formats from renderer #2083

Open emersion opened 4 years ago

emersion commented 4 years ago

With 1 we should be able to remove the hardcoded list of formats we use when EXT_image_dmabuf_import_modifiers is unavailable:

https://github.com/swaywm/wlroots/blob/8707a9b7ecbba0321804604d9ea954a46ecced21/render/egl.c#L575


wlroots has migrated to gitlab.freedesktop.org. This issue has been moved to:

https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/2083

emersion commented 4 years ago

Mesa patch has been merged.

emersion commented 4 years ago

Note, Mesa also has a hardcoded list of formats in case queryDmaBufModifiers isn't available:

https://gitlab.freedesktop.org/mesa/mesa/-/blob/ebe176eeff75b76527fc99d0a0f88b48ab04d0d7/src/gbm/backends/dri/gbm_dri.c#L611

Maybe we should align our list with Mesa.