wlroots-hyprland/render
Simon Ser 1bf9676e87 render/egl: improve modifier support detection
Support for EXT_image_dma_buf_import_modifiers doesn't necessarily
indicate support for modifiers. For instance, Mesa will advertise
EXT_image_dma_buf_import_modifiers for all drivers. This is a trick
to allow EGL clients to enumerate supported formats (something
EXT_image_dma_buf_import is missing). For more information, see [1].

Add a new wlr_egl.has_modifiers flag which indicates whether
modifiers are supported. It's set to true if any
eglQueryDmaBufModifiersEXT query returned a non-empty list.

Use that flag to figure out whether the buffer modifier should be
passed to the EGL implementation on import.

[1]: https://github.com/KhronosGroup/EGL-Registry/issues/142
2021-12-02 14:21:51 +00:00
..
allocator Require INVALID for implicit format modifiers 2021-11-26 16:40:53 +00:00
gles2 Remove support for DMA-BUF flags 2021-11-17 16:12:59 +00:00
pixman render/pixman: advertise MOD_INVALID instead of MOD_LINEAR 2021-12-02 14:12:14 +00:00
vulkan render/vulkan: Optimize vertex shader 2021-11-23 15:46:24 +00:00
dmabuf.c render/dmabuf: make src arg const in wlr_dmabuf_attributes_copy 2021-02-02 19:53:16 +01:00
drm_format_set.c render/drm_format_set: remove special LINEAR case 2021-11-26 16:40:53 +00:00
egl.c render/egl: improve modifier support detection 2021-12-02 14:21:51 +00:00
meson.build render: completely disable gles2 if requested but libEGL is found 2021-11-02 09:36:38 +00:00
pixel_format.c render/pixel_format: add more formats for Pixman 2021-08-03 02:53:03 -04:00
swapchain.c Move allocator stuff into new directory 2021-08-25 09:57:20 -04:00
wlr_renderer.c render: introduce WLR_RENDER_DRM_DEVICE 2021-11-25 15:12:32 +00:00
wlr_texture.c render/wlr_texture: put wlr_texture_from_buffer into the public API 2021-07-22 22:28:24 +02:00