mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-19 08:56:27 -05:00
Revert "Require INVALID for implicit format modifiers"
This reverts commit ea7357b703.
This commit is contained in:
parent
61b83441a1
commit
1d7e438d8a
6 changed files with 45 additions and 39 deletions
11
render/egl.c
11
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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue