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>dev
parent
567cc92797
commit
98101e88cc
Loading…
Reference in new issue