aboutsummaryrefslogtreecommitdiff
path: root/render/egl.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-03-31 17:07:55 +0200
committerSimon Zeni <simon@bl4ckb0ne.ca>2021-10-01 09:21:50 -0600
commitea7357b70366588069c83f158e6a4eb2d3a702b3 (patch)
treedbbaf24db13ae7f070a10be1fd41268f93c5b2c4 /render/egl.c
parent833437d5921339f2862ccfb0493617630ea3937d (diff)
Require INVALID for implicit format modifiers
See [1] for the motivation. [1]: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/75
Diffstat (limited to 'render/egl.c')
-rw-r--r--render/egl.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/render/egl.c b/render/egl.c
index 712a61c8..1293c14b 100644
--- a/render/egl.c
+++ b/render/egl.c
@@ -119,12 +119,11 @@ static void init_dmabuf_formats(struct wlr_egl *egl) {
has_modifiers = has_modifiers || modifiers_len > 0;
- if (modifiers_len == 0) {
- wlr_drm_format_set_add(&egl->dmabuf_texture_formats, fmt,
- DRM_FORMAT_MOD_INVALID);
- wlr_drm_format_set_add(&egl->dmabuf_render_formats, fmt,
- DRM_FORMAT_MOD_INVALID);
- }
+ // EGL always supports implicit modifiers
+ wlr_drm_format_set_add(&egl->dmabuf_texture_formats, fmt,
+ DRM_FORMAT_MOD_INVALID);
+ wlr_drm_format_set_add(&egl->dmabuf_render_formats, fmt,
+ DRM_FORMAT_MOD_INVALID);
for (int j = 0; j < modifiers_len; j++) {
wlr_drm_format_set_add(&egl->dmabuf_texture_formats, fmt,