diff options
author | Simon Ser <contact@emersion.fr> | 2021-10-01 17:22:04 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-10-01 09:26:05 -0600 |
commit | 1d7e438d8ac636a2c90d58875e73a67e5440e4ae (patch) | |
tree | 1e42c9eeb72a7e2af478c8db73824968b2b0c109 /render/egl.c | |
parent | 61b83441a195d9500a3c96bd640a756be16b658e (diff) |
Revert "Require INVALID for implicit format modifiers"
This reverts commit ea7357b70366588069c83f158e6a4eb2d3a702b3.
Diffstat (limited to 'render/egl.c')
-rw-r--r-- | render/egl.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/render/egl.c b/render/egl.c index 1293c14b..712a61c8 100644 --- a/render/egl.c +++ b/render/egl.c @@ -119,11 +119,12 @@ static void init_dmabuf_formats(struct wlr_egl *egl) { has_modifiers = has_modifiers || modifiers_len > 0; - // 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); + 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); + } for (int j = 0; j < modifiers_len; j++) { wlr_drm_format_set_add(&egl->dmabuf_texture_formats, fmt, |