aboutsummaryrefslogtreecommitdiff
path: root/render/egl.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-10-01 17:22:04 +0200
committerSimon Zeni <simon@bl4ckb0ne.ca>2021-10-01 09:26:05 -0600
commit62be833aeffaf606087a436863dac5b73b5e25a7 (patch)
tree2917571557558fd6c1cb74928b667a1829e0214e /render/egl.c
parent42138a073bcfa3f18d5467cf6f2ded19c3667e96 (diff)
Revert "render/egl: always add LINEAR to supported modifiers"
This reverts commit 780052d4da0c93f9210dd87d2100b116af7ff308.
Diffstat (limited to 'render/egl.c')
-rw-r--r--render/egl.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/render/egl.c b/render/egl.c
index 3fcfd34b..1293c14b 100644
--- a/render/egl.c
+++ b/render/egl.c
@@ -125,15 +125,6 @@ static void init_dmabuf_formats(struct wlr_egl *egl) {
wlr_drm_format_set_add(&egl->dmabuf_render_formats, fmt,
DRM_FORMAT_MOD_INVALID);
- if (modifiers_len == 0) {
- // Asume the linear layout is supported if the driver doesn't
- // explicitly say otherwise
- wlr_drm_format_set_add(&egl->dmabuf_texture_formats, fmt,
- DRM_FORMAT_MOD_LINEAR);
- wlr_drm_format_set_add(&egl->dmabuf_render_formats, fmt,
- DRM_FORMAT_MOD_LINEAR);
- }
-
for (int j = 0; j < modifiers_len; j++) {
wlr_drm_format_set_add(&egl->dmabuf_texture_formats, fmt,
modifiers[j]);