weston/libweston/backend-drm
Leandro Ribeiro 98101e88cc backend-drm: ignore formats without modifiers from IN_FORMATS
In commit "backend-drm: add DRM_FORMAT_MOD_INVALID to modifier sets when
no modifiers are supported" we've changed the code that iterates through
the IN_FORMATS blob property. Now it adds DRM_FORMAT_MOD_INVALID for
formats exposed without modifiers.

But the thing is that there shouldn't be formats in the IN_FORMATS blob
exposed without modifiers, as the blob has been added after the
introduction of the explicit modifiers API in the kernel. For now,
there's nothing in the kernel to ensure this correct behavior. So
instead of adding DRM_FORMAT_MOD_INVALID in this case, ignore these
formats, as userspace can't do much in this case.

In the future this may be fixed by the kernel. Or maybe the following MR
in libdrm, which adds an iterator API for the IN_FORMATS blob:

https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/146

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
2021-04-27 19:56:38 +00:00
..
drm-gbm.c backend-drm: add DRM_FORMAT_MOD_INVALID to modifier sets when no modifiers are supported 2021-04-27 19:56:38 +00:00
drm-internal.h backend-drm: start to use weston_drm_format in drm_plane 2021-04-27 19:56:38 +00:00
drm-virtual.c backend-drm: add DRM_FORMAT_MOD_INVALID to modifier sets when no modifiers are supported 2021-04-27 19:56:38 +00:00
drm.c backend-drm: add DRM_FORMAT_MOD_INVALID to modifier sets when no modifiers are supported 2021-04-27 19:56:38 +00:00
fb.c Add weston-drm-fourcc.h 2021-02-25 14:35:03 +02:00
kms.c backend-drm: ignore formats without modifiers from IN_FORMATS 2021-04-27 19:56:38 +00:00
libbacklight.c backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00
libbacklight.h backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00
meson.build libweston/backend/drm: might need EGL 2020-10-26 15:44:34 +01:00
modes.c Add weston-drm-fourcc.h 2021-02-25 14:35:03 +02:00
state-helpers.c Add weston-drm-fourcc.h 2021-02-25 14:35:03 +02:00
state-propose.c backend-drm: start to use weston_drm_format in drm_plane 2021-04-27 19:56:38 +00:00
vaapi-recorder.c backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00
vaapi-recorder.h backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00